March 30, 2007

A reminder about best practice for JQuery plugin authors

There’s no guarantee that the users of your plugin will have the $() shortcut mapped to JQuery, so internally you should replace it with it’s JQuery() alias. This is specifically an issue for pages utilizing both JQuery and Prototype (and thus anyone using the server-side framework Ruby on Rails). I’m sure this has been covered elsewhere - just wanted to reiterate it because it can be easy to forget. Thanks!

:)

Agreed! I think we try to promote that on the plugin authoring page. Are there any plugins, in particular, that have this problem? Maybe we can help fix it on our end.

Comment by John Resig — March 30, 2007 @ 10:57 am

Not that I’ve seen, apart from the ones that I tweaked for my applications before realizing the issue, and have since corrected. If I see it in the wild I’ll submit a patch to the plugin author. Thanks for the comment, John. …And for the totally pimp js library :)

Comment by Logan — March 30, 2007 @ 5:09 pm

Hello! Good Site! Thanks you! sefoffdrchtyvy

Comment by wgzjowboau — June 24, 2007 @ 6:47 am

Thanks for this site!
hifue.info

Comment by uhedcdbxei — June 27, 2007 @ 2:45 pm

Leave a reply

Inspiration

6pli Tumblr Aptana IDE Markus Homm Mint Humanized Rawkus Records // All Things Hip Hop // www.rawkus.com The New York Times WeShouldDoItAll Justinsomnia Deluxe Digital Media Democracy Internet Tv Take More Photos fluxiom - capture, manage, access and deliver content across your enterprise Olivier Danchin Jason Santa Maria Tubetorial Ajaxian Raincity Studios 88 Miles - Simple time tracking Welcome to Zopa (UK) - The first lending and borrowing exchange Inspirational design for a web2.0 homepage