-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a form with some text boxes and then a submit button. I want the form to be submitted when the user presses enter after typing in some information -- e.g. the textbox is in focus, not the submit button. How can I do this?
i'm using something like that
pwd is the name of the textbox
btnlog is the name of the submit button
.... private Textbox pwd; private Button btnlog; ... public void onClick$btnlog() { loginCheck (); } public void onOK$pwd() { loginCheck () ; } private void loginCheck () { if ( ei.getLogin(name.getValue(), pwd.getValue()) ) { .... } }
Asked: 2012-05-09 16:25:45 +0800
Seen: 241 times
Last updated: May 09 '12