W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2004

[whatwg] Comments to Web Forms 2.0 downloaded 2004-09-18 (HTML email)

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 8 Dec 2004 23:40:51 +0000 (UTC)
Message-ID: <Pine.LNX.4.61.0412082340010.4755@dhalsim.dreamhost.com>
On Sun, 21 Nov 2004, Mattias Waldau wrote:
> 
> I tried using event listeners, but I had to add them to EVERY control on 
> the form, which is plain stupid. Is there a better way?

You can attach a single key event handler to a common ancestor element 
(such as the <body> or the <form>), since those events bubble. That should 
work fine.

HTH,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 8 December 2004 15:40:51 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:38 UTC