Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NuCleuZ's Blog:
Behaviour.js (an AJAX library)
Jun 27, 2005 @ 14:06:28

On NuCleuZ's blog today, he has a quick note about a simple AJAX library that allows you to "place callback functions on html elements based on their CSS selectors".

With a lot of talk about ajax these days there is a new little library: behaviour.js ( from the O'Reilly Radar ) or: Using CSS selectors to apply Javascript functionality, is a very clean way of adding callback functions to html elments based on their css selectors ( rules doesn't cascade yet, but it looks like the author have started thinking about it)

Cleans the html up a lot ( check out the examples that he refers to ) and separates the javascript out to the header and/or a separate js file ( much like the contextmenu.js I've worked on )

I haven't gotten a chance to check this one out yet, but it does look pretty nice, especially if you want to do more seemless integration with AJAX methods and your page...

tagged:

Link:


Trending Topics: