Grow your CSS skills. Land your dream job.

help w/ jquery conflict

  • # December 14, 2009 at 2:57 pm

    I’m trying to get the jQuery lightbox plugin to work, but it seems to be conflicting with the jQuery for our dropdown menu…I looked at the scripts that both things need; the menu is using 1.3.2 and the lightbox seems to be using 1.2.3.

    I assumed that the newer version would work for both things, but no dice. I can only get one or the other to work by removing one of the calls to the jQuery (1.3.2 or 1.2.3).

    Here is one of the pages where the lightbox is used: http://www.wildfiremarketinggroup.com/our-logo-design/

    Does anyone have an idea what I can do here?

    # December 14, 2009 at 8:19 pm

    Try loading the lightbox.js plugin after jquery.js

    # December 14, 2009 at 9:30 pm

    No, that’s not it. There the jQuery lightbox uses jQuery 1.2.3, the menu uses jQuery 1.3.2 – that is the conflict. They don’t work together and I don’t know how eliminate the need for one of them.

    # December 14, 2009 at 10:23 pm

    Hmm, something else is messing it up. I just downloaded the latest version of the light box and swapped the jQuery version 1.2.3 with the latest and it worked perfectly.

    Try putting the lightbox-0.5.min.js script tag after the jquery script tag.

    # December 16, 2009 at 5:30 pm

    Hmm…odd. It seems to be working fine now, but everything seems to be the same as it was.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".