Select a value of a select1 control by keystroke.

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

Select a value of a select1 control by keystroke.

richhl
we ha radio buttons with values from 1 to 10 and want to
speed selection allowing the user to press
proper number at the keyboard.

has anyone done this? any clue or code snippet?

thx a lot.

rich


--
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: Select a value of a select1 control by keystroke.

fl.schmitt
Hi,

[hidden email] schrieb:

> we ha radio buttons with values from 1 to 10 and want to
> speed selection allowing the user to press
> proper number at the keyboard.
>
> has anyone done this? any clue or code snippet?

I think you will have to use JavaScript to catch Keystrokes and react on
them. I'va attached a very simple test xform that uses Javascript to
select between different choices of a select1. The "monitor" will report
every keystroke, but the select1 value is only changed by keys 0-9. It
should work in the xforms sandbox.

HTH
florian


--
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

js-keystroke-test.xhtml (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Select a value of a select1 control by keystroke.

richhl
On Wed, 12 Dec 2007 12:23:15 +0100
Florian Schmitt <[hidden email]> wrote:

> Hi,
>
> [hidden email] schrieb:
>
> > we ha radio buttons with values from 1 to 10 and want to
> > speed selection allowing the user to press
> > proper number at the keyboard.
> >
> > has anyone done this? any clue or code snippet?
>
> I think you will have to use JavaScript to catch Keystrokes and react on
> them. I'va attached a very simple test xform that uses Javascript to
> select between different choices of a select1. The "monitor" will report
> every keystroke, but the select1 value is only changed by keys 0-9. It
> should work in the xforms sandbox.
>
> HTH
> florian
thx a lot it will be of great help.

rich


--
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