...

View Full Version : Two Javascript programs: how to make them both work?



wendyamstar
07-19-2012, 07:47 PM
I'm new to Javascript, so this may be a dumb question...but I have two Javascript programs on the same webpage, but I'm not sure how to make them both work at the same time. One is a Looped Slideshow and the other is a Lightbox. The Lightbox "overrides" the slideshow, so how do I make them both work at the same time in perfect harmony?? :)

Philip M
07-20-2012, 07:36 AM
I'm new to Javascript, so this may be a dumb question...but I have two Javascript programs on the same webpage, but I'm not sure how to make them both work at the same time. One is a Looped Slideshow and the other is a Lightbox. The Lightbox "overrides" the slideshow, so how do I make them both work at the same time in perfect harmony?? :)

This topic has ben raised very many times in this forum. Try using the search feature. But if you are trying to use two different Javascript frameworks at the same time, then conflicts may occur which cannot be resolved. As you do not give more information about which scripts you are using then that is as far as I can go.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

VIPStephan
07-20-2012, 09:48 AM
Yeah, I suspect the same thing: Two randomly copied and pasted scripts from the internet without enough knowledge on how to use them. And if I had to guess I would say the slideshow is jQuery and the lightbox is prototype.

And I’m tired of repeating it over and over again so I’m gonna make it short this time: Don’t use two different JS libraries in the same document, there are most likely plugins for everything in either of the two.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum