splash
A Little About Me
I am the Innovative Technologies Librarian at Ryerson University located in Toronto, Ontario, Canada. I also develop web application and apps for mobile devices.
Posted By Graham on June 6th, 2010

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: , ,

Similar Posts
Posted in Other

Leave a Reply