W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] [wf2] Default submit button determination and autofocus

From: Michael Gratton <michael@quuxo.com>
Date: Thu, 07 Apr 2005 22:34:17 +0930
Message-ID: <1112879058.14764.5.camel@localhost.localdomain>
On Thu, 2005-04-07 at 14:38 +0200, Anne van Kesteren wrote:
> Current WF2 defines a way to determinate the default submit button[1].
> While it is quite useful it would be even more useful if you could
> decide which is the default submit button in WF2 compliant UAs:

Yes, I agree. I think Hixie put it on some TODO for the spec.

> ASP.NET2 provides quite a useful way[2] to point to the default submit 
> button and the button that should get autofocus.

How does that work? Does it automatically generate and install an
onsubmit handler to make sure the correct button is submit-ed? Or does
it use an IE extension?

> Personally I think declaring them on the FORM element might make more 
> sense.


Michael Gratton, Software Architect.
Quuxo Software <http://web.quuxo.com/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20050407/bd3cb69d/attachment.pgp>
Received on Thursday, 7 April 2005 06:04:17 UTC

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