Hopefully helpful ramblings about jQuery in Drupal

Events happening in the community are now at Drupal community events on www.drupal.org.
katbailey's picture

Hi All,
I already included a link to Part One of this post in a thread below but I've just written Part Two and would love to get some feedback from other jQuery-loving Drupal developers. It gives a brief overview of the history of jQuery in Drupal, discusses jQuery Update module and the difficulty of bridging separate release cycles, looks at best practices for writing jQuery and provides a brief overview of AHAH and Drag & Drop in Drupal 6.
If nothing else, you'll probably at least want to make sure I didn't completely misrepresent your efforts (I certainly hope I didn't!) if I mentioned them in the discussion ;-)

Katherine

Comments

great post. i especially

moshe weitzman's picture

great post. i especially liked the explanation of behaviors. thats just the detail i needed to make the d6 leap. thanks.

A great big thank you! Just

SamRose's picture

A great big thank you! Just starting to learn jQuery and this is useful

Sam Rose
Social Synergy
Open Source Ecology
P2P Foundation

Good writeup! pretty

tjholowaychuk's picture

Good writeup! pretty straightforward stuff, but should be helpful for alot of people. jQuery also has a plugin for the solution that Nedjo made, I forget what its called though.

Vision Media - Victoria BC Web Design

It is called live query -

moshe weitzman's picture

It is called live query - http://brandonaaron.net/docs/livequery/. It is quite magical.

Yes, live query is pretty

katbailey's picture

Yes, live query is pretty amazing. It attaches all behaviours automagically to new post-DOM-loaded content and removes them if elements become unmatched from selector expressions. It is great to have a solution built in to Drupal though so as not to have to rely on a jQuery plugin. But maybe it will get into core eventually...

As long as the author has no

tjholowaychuk's picture

As long as the author has no problem with it I dont see why not unless someone else as a good reason, not that anything is wrong with the current method though.

Vision Media - Victoria BC Web Design