Script Error after upgrade to Q2 dlls

8 posts, 0 answers
  1. Geoff Ballard
    Geoff Ballard avatar
    27 posts
    Member since:
    Mar 2010

    Posted 11 Oct 2010 Link to this post

    Hi,

    I have a telerik:RadAsyncUpload in a page.  It worked using the Q1 dll's when I upgraded to Q2 for the multi upload I got a script error.

    The error is: "Object doesn't support this property or method"

    The error is in a JavaScript resource delivered by Telerik.Web.UI.WebResource.  The header comment is:
    /* START Telerik.Web.UI.AsyncUpload.RadAsyncUpload.js */

    In line :

    w.setFileFilters([],k.get_multipleFileSelectionEnabled()

    I'm using the .NET 4 dll's.

    Any ideas where I can start looking to solve this?
  2. Yana
    Admin
    Yana avatar
    4965 posts

    Posted 14 Oct 2010 Link to this post

    Hello Geoff,

    Could you please send us the definition of RadAsyncUpload and explain exactly how to reproduce the issue? Thanks in advance

    Greetings,
    Yana
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Geoff Ballard
    Geoff Ballard avatar
    27 posts
    Member since:
    Mar 2010

    Posted 19 Oct 2010 Link to this post

    Hi,

    There's no easy way to provide a full listing as this is used inside a solution with 36 projects.  I've pasted the async markup below.  This is contained inside an updatepanel.  We're using a telerik:RadScriptManager.  I'm using the 2010 Q2 dll's.  How do I determine the exact version I'm using?

    If you're unable to replicate this problem is there any particular part of the web.config or something else you'd like to see?  I tried to recreate the problem in a simple project, but multiple file upload worked when I did that.

    <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
        ReloadOnShow="true" runat="server" Skin="Default" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindowUpload" runat="server" Title="Upload Documents" Modal="true"
                Width="550" Height="400" VisibleOnPageLoad="false" Behaviors="Close" Left="580"
                Top="-8" EnableShadow="true">
                <ContentTemplate>
                    <telerik:RadProgressManager runat="server" ID="RadProgressManager1" />
                    <telerik:RadAsyncUpload ID="RadAsyncUpload1" MultipleFileSelection="Automatic" runat="server">
                    </telerik:RadAsyncUpload>
                    <telerik:RadProgressArea runat="server" ID="RadProgressArea1">
                    </telerik:RadProgressArea>

    The solution where the problem exists did originally use the Q1 dll's so I thought it might be an upgrade issue.  As the error occurs inside the Telerik JS file is it possible that the resource handler is returning an out of date JS file?

    Thanks,

  4. Geoff Ballard
    Geoff Ballard avatar
    27 posts
    Member since:
    Mar 2010

    Posted 20 Oct 2010 Link to this post

    I was using version: 2010.2.826.40
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 21 Oct 2010 Link to this post

    Hello Geoff Ballard,

    I believe that this is an issue with the flash object not being properly recreated after an async postback. We will research the issue and provide a fix for it in the upcoming Q3 release. Meanwhile, If you manage to isolate the problem it would of a great use to us If you provide us with a sample demonstrating it. As for a possible workaround to this problem, please add the following JavaScript after script manager declaration:

    <script type="text/javascript">
       Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function() { return false; }
    </script>


    Sincerely yours,
    Genady Sergeev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Geoff Ballard
    Geoff Ballard avatar
    27 posts
    Member since:
    Mar 2010

    Posted 22 Oct 2010 Link to this post

    Hi,

    Thanks for the reply; I will give that suggestion a try shortly.  I have managed to recreate this problem in a small project that I'm not authorised to attach to this post so I will create a support ticket and put the zip file there.

    Thanks,
  7. Gurudath
    Gurudath avatar
    2 posts
    Member since:
    Sep 2012

    Posted 17 Feb 2011 Link to this post

    Hello Telerik,

    Do you have any update on this issue? I have ran into same problem and the work around you have suggested is now working for me. Can you please suggest me some other alternative to fix this problem ASAP. Thanks in advance.
  8. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 23 Feb 2011 Link to this post

    Hi Gurudath,

    The issue is fixed for the latest service pack. Please upgrade.

    Regards,
    Genady Sergeev
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top