Monday, November 5th, 2007
Lo and behold, what do I see, but Prototype, Script.aculo.us and jQuery smiling at me! Yep, GetitNext.com is leveraging all three to enhance their site. It looks as if they’re using Prototype & Script.aculo.us for their effects and jQuery for tooltips, predicting user actions, determining browser dimensions, and popping up notices.
Now, both Prototype and jQuery use the infamous “$” alias so you’d think there would be an instant conflict but this peaceful co-existence between the libraries is able to happen because of a nifty feature included in jQuery; jQuery.noConflict(). Essentially, jQuery.noConflict() allows you to rename the default alias “$” used by jQuery to something totally different thus avoiding naming conflicts with other libraries such as Prototype and MooTools (both of which use the “$” alias). This is very cool and obviously of tremendous benefit since it allows developers to leverage the best features of both Prototype and jQuery.
Kudos to GetitNext.com for doing just that.
Posted by Rey Bango at 7:00 am