Posted: 6/24/2011
I created a master page and added a jquery navigation menu . Then i added a new page and added my master page in it. When i run this page the menu works fine. The problem is when i add a jquery slideshow my menu stops working. Can anyone please tell why is this happening?
Make sure you don't have two reference of jQuery file on the same page.
The jquery for my menu is in the master file since i need it on every page. The jquery for the slideshow is on another page where i added the master page. So both jqueries are on diffenet pages.
I am refrencing the slideshow jquery in the contentplaceholder tags. Do you think this might be the problem.
And Thank you so much raghav for replying.
Yes, there should be one and only one file for core jQuery file. IMHO just add the refernce on your common master page and remove from everwhere else.
Posted: 6/25/2011
tyler durden said: The jquery for my menu is in the master file since i need it on every page. The jquery for the slideshow is on another page where i added the master page. So both jqueries are on diffenet pages.I am refrencing the slideshow jquery in the contentplaceholder tags. Do you think this might be the problem.And Thank you so much raghav for replying.
As Raghav said, reference the jQuery core library in your Master page, while for the specific plugins, you can either reference it in the Master page (if you use the plugins within all other pages), or in the ASPX pages which use that Master page, where the plugin will be used only.
Hope this helps,Hajan