Disabling Flash/Silverlight (for testing)

16 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 05 Jul 2011 Link to this post

    I have a RadAsyncUpload control on my page and I want to test all of my functionality for those clients that can't/don't have either Flash or Silverlight installed.

    Using code found in this forum I have this in my markup just before the definition of the AsyncUpload control ...
      <script type="text/javascript">
        Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; }
      </script>
    </para>

    Now, when testing, I was expecting to:
    1. Not be able to select multiple file
    2. See an Add button to add a new file

    So, I'm doing something wrong, it's broken or my expectations are wrong.

    Which is it?

    -- 
    Stuart

  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 07 Jul 2011 Link to this post

    Hello Stuart,

    When Flash and Silverlight modules are disabled with the following javascript:
    Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; };
    Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; };
    RadAsyncUpload uses IFrame to upload file.

    You are correct that multiple selection is off - browser limitation. It happens because a standard input type=file is used - positioned on iframe element.

    With a standard declaration of RadAsyncUpload control on the page it should look like the same with all modules.

    Please review the sample code:
    <form id="form1" runat="server">
        <div>  
        <telerik:RadScriptManager runat="server" ID="RadScriptManager"></telerik:RadScriptManager>
        <script type="text/javascript">
            Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; };
            Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; };
        </script>
        <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" ></telerik:RadAsyncUpload>
    </div>
    </form>


    All the best,
    Peter Filipov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Graham
    Graham avatar
    28 posts
    Member since:
    Feb 2011

    Posted 05 Aug 2011 Link to this post

    We have a similar problem with Telerik DLL version 2011.1.519.35.
    I found elsewhere on this site that the flash component of RadAsynUpload is incompatible with Windows authentication - that is certainly true as it just locks an IE7 browser. Therefore, I tried the suggested JavaScript code in this thread to disable Flash, however, it didn't work and locked the browser again. There were no JavaScript errors.

    Any suggestions ?

    Graham Plowman
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 05 Aug 2011 Link to this post

    Hello Graham,

    Could you please clarify whether it didn't worked for disabling flash or flash was disabled, however, the upload still was unable to authenticate?

    All the best,
    Genady Sergeev
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  6. Graham
    Graham avatar
    28 posts
    Member since:
    Feb 2011

    Posted 05 Aug 2011 Link to this post

    Hi Genady,

    I confirm that I inserted the JavaScript as suggested on this thread. It appeared to word as there were no Javascript/page errors reported by the browser. When I attempted to do an upload, authentication was not successful, the yellow button continued to flash for ever. Cancel did not work and if pressed, the Ie7 browser locked. In fact, once the yellow button appeared, the browser locked and I have to terminate it from Task Manager (Win XP).

    Graham Plowman
  7. Graham
    Graham avatar
    28 posts
    Member since:
    Feb 2011

    Posted 08 Aug 2011 Link to this post

    Hi,

    Is there any news on this ?

    We are developing a web site which resides in one domain and is accessed from another by users. The domain of the website trusts the user domain and we have windows authentication configured (no anonymous access).
    The site is working correctly except of the radAsynUpload control which continually locks the IE7 browser.
    Our tech support people tell us that by installing Silverlight on a client machine solves the problem.
    We have not specifically allowed or disallowed flash or silverlight, so I presume there is a 'hierarchy' of defaults going on ?
    However, when I applied the javascript advised by Peter above to disable flash and silverlight to force an IFrame upload, the control still did not work. After selecting a file, the yellow button started flashing. trying to upload locked the browser.

    Any thoughts ?

    Graham Plowman
  8. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 10 Aug 2011 Link to this post

    Hello Graham,

    Please send me a working sample project that reproduces your issue. Please clarify which IIS and browser you are using and give me more details about your IIS configuration - authentication section which authentication is disabled and which not.

    All the best,
    Peter Filipov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  9. Graham
    Graham avatar
    28 posts
    Member since:
    Feb 2011

    Posted 10 Aug 2011 Link to this post

    Hi Peter,

    I think we have discovered the problem by searching the Telerik website. Basically, the latest release of radAsyncUpload which we have is not compatible with IE7.
    It appears that radAsynUpload attempts to check for Silverlight being installed. Under IE7, that check fails, yet radAsyncUpload proceeds to try to use Silverlight. If Silverlight is not installed (as was the case for us), the browser locks. If Silverlight is installed, the upload works.
    In IE8, radAsyncUpload correctly checks for Silverlight and decides accordingly. we didn't have Silverlight installed so radAsyncUpload tried to use Flash, but because that does not authenticate properly in a Windows Authenticated environment (as per other messages on this forum), that also failed.
    We propose to install Silverlight as a solution.

    Do you agree ?

    Thanks + regards

    Graham Plowman
  10. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 11 Aug 2011 Link to this post

    @Graham. Nice catch.

    @telerik, is there any chance of a hotfix for this if it is as Graham suggests? I'l like to say "Pah, it's only IE7, but I have a lot of civil and central government users who's idea of a 'modern, up-to-date browser' is IE7.

    -- 
    Stuart
  11. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 15 Aug 2011 Link to this post

    Hello Graham,

    The problem is that I still can not reproduce your issue. Please give me detailed description about IIS configuration. Authentication settings - status and advanced settings, review the attached picture.
    RadAsyncUpload control is using 3 modules to upload files - Silverlight/Flash/IFrame.
    If there is no Silverlight add on, the browser is using Flash, and if there is no Flash the browser is using IFrame module.
    In your case probably there is an issue when IFrame module is used.
    As you remark Silverlight add on is resolving the issue. I agree that it is a solution.

    Greetings,
    Peter Filipov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  12. Graham
    Graham avatar
    28 posts
    Member since:
    Feb 2011

    Posted 15 Aug 2011 Link to this post

    Hi Peter,

    We have IIS running under Windows Server 2003. Anonymous access is disabled. Integrated Windows Authenticated is selected.
    The IIS web server is in a different domain to the one my client machine is on and there is a one way trust - the server's domain trusts my domain but not the other way. I am a member of a user group on my domain which is permitted by the server's domain to access various servers including the web server.
    My client machine is using IE7. Silverlight is not installed but Flash player is.
    Everything about our website works fine except for radAsyncUpload.

    When my developers tried to debug what was going on, they found that under IE7, Telerik code wasn't correctly identifying the presence of Silverlight and was always trying to use it, regardless of its presence. We found elsewhere on this site that Telerik has dropped support for IE7, so the problem we are having doesn't come as a surprise.

    Graham Plowman
  13. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 18 Aug 2011 Link to this post

    Hi Graham,

    I am still trying to reproduce your issue. More information about it will be really helpful.
    Could you please provide me a live URL to investigate the problem directly. In case you can not provide a live URL, please record a log with dynatrace and send it back(e.g. start tracking open the particular URL, reproduce the issue wait a little bit after the browser is locked, and end browser process from the task manager). DynaTrace will give me addition information about the javascript of your application.
    Regarding browser support please review the following link, Telerik supports IE6 + versions.

    Regards, Peter Filipov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  14. Karl Mikesell
    Karl Mikesell avatar
    55 posts
    Member since:
    May 2010

    Posted 22 Aug 2011 Link to this post

    Yes, the only way to disable Silverlight is running IE x64.

    Would like to disable both, in x86 browsers, but cannot.
  15. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 25 Aug 2011 Link to this post

    Hi Graham,

    Could you please clarify which IE version you are using - IE with Browser Mode: IE7 and Document Mode: IE7 Strandards or a normal IE7 application?

    Regarding Karl's question, please use the following code to disable Silverlight:
    <script type="text/javascript">
    if ($telerik.isIE7)
    Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function () { return false; };
    </script>

    Greetings,
    Peter Filipov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  16. Karl Mikesell
    Karl Mikesell avatar
    55 posts
    Member since:
    May 2010

    Posted 30 Aug 2011 Link to this post

    Adding this:
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1"/>
    <script type="text/javascript">
    Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function() { return false; }
    Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; }
    </script>

    Worked to disable both Flash & Silverlight using x86 browser.

    The script was running inside <telerik:RadCodeBlock runat="server" ID="RadCodeBlock1"> before, which did not prevent silverlight object from getting created.
  17. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 02 Sep 2011 Link to this post

    Hi Karl,

    To avoid inconsistency of the tread, please open a new support ticket for your further questions.

    Regards,
    Peter Filipov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017