Click here to Skip to main content
15,909,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

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.
 
Share this answer
 
Comments
abc_fm 14-Sep-12 9:52am    
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:56am    
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:

XML
<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>
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900