Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

jQuery Conflict.

I have the following script on a page that toggles a menu open and closed:
<script>
jQuery(document).ready(function() {
	jQuery('.laser-nav-display').click(function() {
		jQuery('.nav-lasers').slideToggle("slow", function() {
			
		});
	});
	jQuery('.app-nav-display').click(function() {
		jQuery('.nav-applications').slideToggle("slow", function() {
			
		});
	});
});
</script>
It works fin.  The problem is, I have the nivo-slider plugin working in another div on the page.  When the page loads it toggels the nivo slider div closed.  How do I stop it from doing that?

Open in new window

Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Can you post a link to the page? nivo slider has no default element name set to app-nav-display or laser-nav-display...
Avatar of Robert Granlund

ASKER

cohr-dev-ee01.azurewebsites.net/
With Firebug I see the following:

1 -  you have an error at line 23 of unspecified page (suppose index.html):
      TypeError: $(...).mCustomScrollbar is not a function
              $(window).load(function(){$(".image-thumb-cont").mCustomScrollbar();});

2 - Exploring the markup after having stopped the javascript execution, I see that Firebug says it can't load any image which should appear in nivoslider

Don't know if these things can help you to find the bug, but I hope :-)
ASKER CERTIFIED SOLUTION
Avatar of lenamtl
lenamtl
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial