[Catalyst] Spending time with Catalyst (slightly OT)

Nate Wiger nwiger at scea.com
Mon Sep 11 21:25:51 CEST 2006


Roman wrote:
> Matthieu Codron wrote:
>> I knew about YUI but I kind of overlooked it ... As for jQuery, you 
>> still need to code a lot, isn't it?
>>
>> Thanks a lot, and keep the good tips coming ;-)
> 
> Yes, you need to code, but not a lot. There is a lot of abstraction and 
> also an easy way to select elements. You can use xpath and css selectors 
> to find objects and then iterate over them easily. For example:
> 
> // find users in a first list and run a function on it
> $('div.users ul:first li').each(function(){
> alert('found user ' + $(this).text());
> });
> 
> // find even row tables and add class to them (zebra tables)
> $('table tr:even').addClass('even');

I'm really dig JQuery too. It just looks so... Perlish.

Like Roman said, instant code like this makes life so nice:

    http://www.leftlogic.com/info/articles?id=1

Coding in JQuery feels like a giant macro with regexes, rather than 
having to use theHorrendousDomFunctions[0].thatMakeYouWantToKill();

-Nate




More information about the Catalyst mailing list