Hi can anyone help with this?

if masonry works, lightbox doesnt. if masonry doesnt, lightbox works.

The scripts seem to be in conflict. I've already tried Jquery.noConflict and using another version of lightbox. i found a sample site from masonry: http://photography.iamkoa.net/ that managed to put both jquerys together and it works. But i don't know what is the problem with mine. Any clue?

my link: http://undergrounderground.com/jq/portfolio.html

really urgent. anyone?

1 answer

Andy Ford 533
2
points

it looks like you're loading the jquery library twice. You only need to load it once. Then load all the scripts that depend on it (masonry and lightbox) after.

so instead of this:

jquery
lightbox
jquery
masonry

just do this:

jquery
lightbox
masonry

Also jQuery.noConflict is to prevent conflicts between jquery and other javascript libraries/frameworks (such as prototype, mootools, etc. And using multiple js frameworks should generally be avoided). Masonry and Lightbox are jQuery plugins dependent on the jQuery library so there would be no need to use jQuery.noConflict.

It's also worth mentioning that there is an official jQuery forum.

Answered over 2 years ago by Andy Ford