Re: Determine if Browser uses IFrame mode

  •  12-18-2012, 3:45 PM

    Re: Determine if Browser uses IFrame mode

    Hi,

     

    you can try the code below. It will detect the browser has the silverlight/flash or not. If not, it means the uploader will load as the htlm5/ifream mode.

     

    1. <script> 
    2. function CuteWebUI_AjaxUploader_OnBrowse() 
    3.     uploader=this
    4.     var scope=uploader.internalobject; 
    5.         if(!scope.addontype) 
    6.         { 
    7.                 alert('you must installed Flash/Silverlight or use Chrome etc..'); 
    8.                 return false
    9.         } 
    10. </script> 
     

    Regards,

     

    Ken

View Complete Thread