This is a migrated thread and some comments may be shown as answers.

RadAsyncUpload losing jquery reference on postback in FIREFOX only

1 Answer 26 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Jacob cheriathundam
Top achievements
Rank 1
Jacob cheriathundam asked on 28 Aug 2013, 05:28 PM
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!!

1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo Valyavicharski
Telerik team
answered on 02 Sep 2013, 01:35 PM
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.
Tags
AsyncUpload
Asked by
Jacob cheriathundam
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or