RadAsyncUpload losing jquery reference on postback in FIREFOX only

2 posts, 1 answers
  1. Jacob cheriathundam
    Jacob cheriathundam avatar
    3 posts
    Member since:
    Jun 2007

    Posted 28 Aug 2013 Link to this post

    I have this very weird issue.

    Setup: I have jquery 1.10 reference in the master page of my form.  I'm writing a SharePoint 2010 visual web part that contains a RadAsyncUpload (2013 q2).  I also have Script References in my page to:
     <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />

    Problem:  For whatever reason after the page is posted back, I get the error "addback is not a function" whenever I try to upload a file.  This issue happens in Firefox but not in IE (it works completely fine in IE).  Prior to the user posting the page, the upload works fine in FireFox, it's JUST after a postback has already occurred.

    Again, this problem only exists in FireFox and not IE (I can't test it out in any other browsers because my current environment is locked down to just those tow browsers)

    I know that the "addback" is an added function present in jquery 1.8 and later but I'm not sure how exactly how the 1.10 is used on the initial load of the page, but lost afterwards.  I believe that SharePoint defaults to jquery 1.7 something.

    Any help would be greatly appreciated.  I hvae a VERY tight deadline so a prompt response would be so helpful!!
  2. Answer
    Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 02 Sep 2013 Link to this post

    Hi Jacob,

    Telerik controls internally use jQuery 1.9.1. That's why you should add additional jQuery reference, especially if its version is different in order to avoid conflicts in jQuery versions. It would be better if you reference the embedded jQuery via the ScriptManager:
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>

    Regards,
    Hristo Valyavicharski
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top