xforms-setfocus on hidden element?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xforms-setfocus on hidden element?

Adrian Baker-2
Currently if you dispatch a xf0rms-setfocus event to a control which is
not relevant you get a javascript error (cannot accept focus etc).

The spec says (http://www.w3.org/TR/xforms/slice4.html#evt-focus):
    "Focus is given to the target form control if the form control is
able to accept focus."

Should the javascript error be suppressed, and nothing happen instead?

Adrian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xforms-setfocus on hidden element?

Alessandro  Vernet
Administrator
Adrian,

Yes, there should be no error in this case. I created a test case and
added a bug:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=305308&group_id=168&atid=350207

Alex

On 5/15/06, Adrian Baker <[hidden email]> wrote:

> Currently if you dispatch a xf0rms-setfocus event to a control which is
> not relevant you get a javascript error (cannot accept focus etc).
>
> The spec says (http://www.w3.org/TR/xforms/slice4.html#evt-focus):
>     "Focus is given to the target form control if the form control is
> able to accept focus."
>
> Should the javascript error be suppressed, and nothing happen instead?
>
> Adrian
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet