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
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/