[Html-widget] JS/AJAX with HTML::Widget

John Napiorkowski jjn1056 at yahoo.com
Tue Aug 22 15:12:59 CEST 2006


Personally I prefer to not clutter the html with inlined event handlers.  Right now I am using the behavior library (http://bennolan.com/behaviour/) which allows you to add event handlers using CSS selector syntax and you can isolate it in a .js file outside the html.  It really clean the code up a lot and helps with reusability.  You might want to check it out.  --john

----- Original Message ----
From: A. Pagaltzis <pagaltzis at gmx.de>
To: html-widget at lists.rawmode.org
Sent: Tuesday, August 22, 2006 5:39:37 AM
Subject: Re: [Html-widget] JS/AJAX with HTML::Widget


* Carl Franks <fireartist at gmail.com> [2006-08-22 10:45]:
> You can add arbitrary attributes to both the form (widget) and
> any element with the 'attributes' hash-ref.

But you can also instead do the right thing by using unobtrusive
Javascript, for which you don’t need to do much of anything on
the H::W side, since all elements already get IDs.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

_______________________________________________
Html-widget mailing list
Html-widget at lists.rawmode.org
http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget






More information about the Html-widget mailing list