Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clash with Lightbox and JQuery 1

Status
Not open for further replies.

youradds

Programmer
Jun 27, 2001
817
GB
Hi,

Got a bit of an issue with JQuery and Lightbox working together :/

Please see this page:


If I comment out the JQuery stuff, it works fine when you click the image - but as soon as its put back in, it stops working :/

Anyone got any suggestions as to how I can sort this?

TIA

Andy
 
Lightbox uses Prototype (a javascript framework. jQuery is a javascript framework that has a clash in the use of $ (both frameworks attempt to use this differently).

The solution is to apply the jQuery noConflict method.


Cheers!

[tt]Visit my blog [!]@[/!] Visit Code Couch [!]@[/!] [/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Hi,

Thanks for the reply - will check that out :)

Cheers

Andy
 
Thanks BabyJeffy - works a charm (I've just tested it)

I've stared you for your help =)

Cheers

Andy

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top