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

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