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

Prevent Duplicate jQuery

3 Answers 149 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 11 Nov 2011, 05:40 PM
I am using the Telerik ScriptManager with EnableCDN="True", but I want to load jQuery from Google's CDN instead since my page will not work if I rely on the jQuery loaded only from the Telerik Scrip Manager (I'm guessing it's an order of operations problem). 

Is there any way to prevent the Telerik ScriptManager from loading jQuery and just have it rely on the already loaded Google CDN jQuery?

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 15 Nov 2011, 06:32 PM
Hi Scott,

Yes, you could override our path to jQuery with Google CDN's path in this way:
<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" Path="..." />
   </Scripts>
</telerik:RadScriptManager>

I hope this helps.

Kind regards,
Simon
the Telerik team
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 their blog feed now
0
Felipe Casanova
Top achievements
Rank 1
answered on 13 Apr 2012, 10:47 AM
If I do this nearly everything works. I have a problem in the Scheduler (using a web service) with deleting an appointment. I get $telerik.$.modal is not defined so I presume I'm missing javascript components from the Popupscripts.js?

I'm loading jquery 1.7.1 separately in order to allow for other components to work. Using ASP.NET AJAX 2011.3 1305.

Any thoughts on how I might be able to do this and have all the components loaded for the scheduler? If I remove the scriptreferences and load multiple 1.7.1's (Telerik and the *normal* one) then it works but I don't want multiple jquery files. It bugs me.

Thanks

0
Ivan Zhekov
Telerik team
answered on 17 Apr 2012, 04:24 PM
Hello, Matt.

Could you open a separate support thread and attach in it a sample of your project that has the problematic scheduler?

Your case will need some digging in and the community forums are not quite fit for the task, as they do not allow the inclusion of zip files, per say.

Regards,
Ivan Zhekov
the Telerik team
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 their blog feed now.
Tags
ScriptManager and StyleSheetManager
Asked by
Scott
Top achievements
Rank 1
Answers by
Simon
Telerik team
Felipe Casanova
Top achievements
Rank 1
Ivan Zhekov
Telerik team
Share this question
or