Using ENTER key in select1 full.

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

Using ENTER key in select1 full.

richhl
Would you please suggest a fast and cheap way of making the <enter> key to act as space or click in a select1? (I mean with the effect of selecting th current focused item of the select1)

I've used same approach as this sample http://www.nabble.com/ObjectWeb-OPS---Users-f2537.html (container div listening for a key event that is then dispatched to xforms model) but i'm not able to reach with my model action the index of the select1 itemset (current focused element order) for setting the value of the select1 according to that index.

        <xforms:action ev:event="enter-key">
            <xforms:setvalue ref="xxforms:instance('inst_respuestas')/respuesta[@id=xxforms:instance('inst_cuestionario')/pregunta[index('bucleDePreguntas')]/@id]"  value="xxforms:instance('inst_cuestionario')/pregunta[index('bucleDePreguntas')]/respuesta[index('bucleDeRespuestas')]/@valor"/>
        </xforms:action>

throws a 'bucleDeRespuestas' not in scope....bucleDeRespuestas is the id of the select1.

thx a lot.


--
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: Using ENTER key in select1 full.

Alessandro Vernet
Administrator
Richard,

Richard C. Hidalgo Lorite wrote
Would you please suggest a fast and cheap way of making the <enter> key to act as space or click in a select1? (I mean with the effect of selecting th current focused item of the select1)
What would pressing enter do? Just dispatch an event? You have drop-downs in mind, right (not lists)?

Richard C. Hidalgo Lorite wrote
throws a 'bucleDeRespuestas' not in scope....bucleDeRespuestas is the id of the select1.
Would you have a test case that we can run in the sandbox and that shows this?

Alex