2.0 version of Falling Space Rocks coming soon! Free update for those who have purchased the iPhone version. [...]
Another reason why I love JQuery
Posted By Graham on April 1st, 2010
Today I was integrating Lightbox 2 into my wordpress instance which caused a conflict between the Prototype and JQuery namespaces.
… I made it sound like I knew what the problem was right away, but it did take me some troubleshooting to figure out the issues.
JQuery has an awesome ability to change it’s namespace from the usual ‘$’ to any variable you want with one simple line of code:
var JQ = jQuery.noConflict();
Now, instead of calling $(“myDiv”).doSomething(); I call JQ(“myDiv”).doSomething();
Worked like a charm!
Tags: jQuery, Prototype, solution
Similar Posts
Share
Posted in Other
Comments 0

Facebook
Twitter
Flickr
YouTube
Delicious
Last FM