I'm not sure what Igor meant with this suggestion.

I think .setDefaultButton() should do what you need.

Here is another suggestion from me:

Add a non-Ajax behavior to the text field which adds 'keyup' event
handler. When the user types something in the field then check the
keyCode from the event and if it is 13 then call
'document.getElementById("submitButtonId").click()'.

On Thu, Jan 19, 2012 at 10:07 AM, Krishna Mohan
<[email protected]> wrote:
>
> Yes i understood that, but how to solve my original problem
>
> Regards
> Krishna
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to