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

LVL 7
rgranlundAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Marco GasiFreelancerCommented:
Can you post a link to the page? nivo slider has no default element name set to app-nav-display or laser-nav-display...
0
rgranlundAuthor Commented:
cohr-dev-ee01.azurewebsites.net/
0
Marco GasiFreelancerCommented:
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 :-)
0
lenamtlCommented:
Hi,

all your banner are not found
example:

A slash is missing
http://cohr-dev-ee01.azurewebsites.netimages/site_images/banners/test-banner-1.png Failed to load resource: net::ERR_NAME_NOT_RESOLVED

this will work if you change it for
http://cohr-dev-ee01.azurewebsites.net/images/site_images/banners/test-banner-1.png
 
also see this kind of link will not work
<a href="/index.php//measurement-control/energymax-laser-sensors/excimer-laser-energymax-sensors">

change it to and make sure the image is in the folder!
<a href="images/measurement-control/energymax-laser-sensors/excimer-laser-energymax-sensors">
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.