Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 440
  • Last Modified:

Conflict stmenu and jquery1.4.2

In my website am using stmenu and Carousel. Here i don't know Carousel is working but Menu is not working in my website.  When i remove jquery1.4.2.js  script tag Menu is working, but Carousel is not working. When i include jquery1.4.2.js  script tag Menu is not working, but Carousel is working.
Lastly i find out stmenu.js and jquey1.4.2.js conflict. I want to work both. What can i do. Help me
0
rameshitm
Asked:
rameshitm
  • 2
  • 2
1 Solution
 
MacAnthonyCommented:
There are a couple of solutions outlined in jquery's documentation on using .noConflict with multiple JS libraries. Try them out and see which works for you.

0
 
rameshitmAuthor Commented:
Where i have to  include the .noConflict
0
 
MacAnthonyCommented:
The version I have usually used is the one where you assign jquery to another global variable like:

var $j = jQuery.noConflict();
$j('div').show();

Open in new window


This way, you would use $j everywhere that you normally used $ for jquery. This only works if the carousel plugin you are using has been created in such a way to be compatible with this process. Hopefully it has.
0
 
rameshitmAuthor Commented:
Thank you
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now