Click here to Skip to main content
Sign Up to vote bad
good
See more: jQuery
Hi All,
In my aspx page i`m using usercontrol for menu. in user control i am having reference to jquery.js.
 
in aspx i`m having "jquery-1.8.1.min.js" reference for fullcalendar plugin.Due to multiple references of jquery plug in calendar is not working(throws javascript error).
 
how can i have multiple references to jquery working correctly , please help.
 
Thanks in advance
Posted 14 Sep '12 - 3:41
abc_fm352


2 solutions

Why do you need to have multiple reference? Just refer your base/master page and that should do. You don't need to refer the file on every usercontrol.
  Permalink  
Comments
abc_fm - 14 Sep '12 - 9:52
Hi Thanks for quick reply. i need to use "jquery-1.8.1.min.js" in my page for calendar plugin and but user control uses "jquery.js". Regards,
Sandeep Mewara - 14 Sep '12 - 9:56
If my assumption is correct, both are jQuery files and 1.8.1.min one is the latest one. They should be back compatible and there should be no issue. If in case you have, fix it! Use latest jQuery file and refer once at the base page.
Do not have multiple References of same JS Files as it will slow down your application.
Just Refer to these Files in Your Master page once:
 
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/pepper-grinder/jquery-ui.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.min.js"></script>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 310
1 Slacker007 240
2 Mahesh Bailwal 230
3 Ron Beyer 215
4 Aarti Meswania 200
0 Sergey Alexandrovich Kryukov 8,598
1 OriginalGriff 7,024
2 CPallini 3,668
3 Rohan Leuva 3,011
4 Maciej Los 2,343


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid