TextArea focus

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

TextArea focus

bsteuhl
Why does the textarea not accept focus when mediatype is set to text/html?

•Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.

Reply | Threaded
Open this post in threaded view
|

Re: TextArea focus

Erik Bruchez
Administrator
This message doesn't seem to be generated by the server.

Is it generated by JavaScript?

Can you create a super-simple example showing this?

-Erik

On Sun, Oct 3, 2010 at 10:33 AM, bsteuhl <[hidden email]> wrote:

>
> Why does the textarea not accept focus when mediatype is set to text/html?
>
> •Message: Can't move focus to the control because it is invisible, not
> enabled, or of a type that does not accept the focus.
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/TextArea-focus-tp2953350p2953350.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: TextArea focus

bsteuhl
Erik,

Sorry it took me this long to respond.  Message was due to the control being in a Case and that case not visible.  But even when I have an id on a textarea that is displayed (visible), focus does not get set when textarea attribute mediatype="text/html".
Reply | Threaded
Open this post in threaded view
|

Re: Re: TextArea focus

Alessandro  Vernet
Administrator
Brian,

The xforms:setfocus was not working because… well, it was not
implemented. This is because when this was done, we were using YUI
2.6, which didn't have the proper support for this. We've upgrade to
YUI 2.8 a while ago, but haven't changed that code. (Yes, shame on
me!) Now it's done, and it was a matter of changing one line:

https://github.com/orbeon/orbeon-forms/commit/3ccc92384af2c5d0b32a1ee3fd96c1a369f06e2d

This fixes:

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

It will be in the next nightly build; you'll let me if it works for you.

Alex

On Wed, Nov 17, 2010 at 9:48 AM, bsteuhl <[hidden email]> wrote:

>
> Erik,
>
> Sorry it took me this long to respond.  Message was due to the control being
> in a Case and that case not visible.  But even when I have an id on a
> textarea that is displayed (visible), focus does not get set when textarea
> attribute mediatype="text/html".
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/TextArea-focus-tp2953350p3047244.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet