W3C home > Mailing lists > Public > public-forms@w3.org > August 2008

Re: Allow xf:setfocus with no @control to set the focus to the event target

From: Mark Birbeck <mark.birbeck@webbackplane.com>
Date: Thu, 21 Aug 2008 03:55:20 +0200
Message-ID: <ed77aa9f0808201855i251ee3e4p7ba9e64e8808f0c9@mail.gmail.com>
To: "John Boyer" <boyerj@ca.ibm.com>
Cc: "Ulrich Nicolas Lissť" <unl@dreamlab.net>, public-forms <public-forms@w3.org>

Hi John,

> [snip]
>
> Does it really make sense to try to focus the event target?

If that's what the author wants...yes. It's not uncommon in HTML forms
to prevent users from leaving a control if its value is not set
appropriately, for example.


>  What if a
> sequence of actions is grouped together and invoked from multiple locations
> using dispatch?

Sure...but if the listener is on the control, then you'll always
ultimately get Event.target set to the control in question, won't you?


> It seems an odd thing to see <setfocus/> without any indication of what the
> focus is being set to.

No different to any other default values, surely? (xf:rebuild,
xf:refresh, xf:submit, xf:send, etc.) And a lot less weird looking
than using the event() function. :)

Regards,

Mark

-- 
Mark Birbeck, webBackplane

mark.birbeck@webBackplane.com

http://webBackplane.com/mark-birbeck

webBackplane is a trading name of Backplane Ltd. (company number
05972288, registered office: 2nd Floor, 69/85 Tabernacle Street,
London, EC2A 4RR)
Received on Thursday, 21 August 2008 01:56:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:48 UTC