struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glenn Wilson" <gwil...@serviceobjects.com>
Subject RE: Return key pressed and default submit form
Date Thu, 17 Mar 2005 17:29:19 GMT
Hello,

The return-key functionality of forms is part of the web browser...if you're in a form and
there's a submit button, and you hit enter, it will submit that form.

My recommendation would be to change your submit button to a regular input type="button" and
that should disable the functionality (assuming that button doesn't get focus at some point):

<input type="button" value="Submit Me" onClick="this.form.submit();">

Hope that helps,
Glenn

-----Original Message-----
From: Gaet [mailto:gaetmail@free.fr]
Sent: Thursday, March 17, 2005 9:18 AM
To: Struts Users Mailing List
Subject: Re: Return key pressed and default submit form


Nobody knows about this simple question?

TIA

----- Original Message ----- 
From: "Gaet" <gaetmail@free.fr>
To: "Mailing List Struts" <user@struts.apache.org>
Sent: Thursday, March 17, 2005 9:03 AM
Subject: Return key pressed and default submit form


Hi,

I a have a page with a form and when I click the return button of my
keyboard it submits the first button of my form...
how to change the default button or disable the return key action?

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


=======================================================
This email message is for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by reply email and destroy
all copies of the original message. If you are the intended recipient, please be advised that
the content of this message is subject to access, review and disclosure by the sender's Email
System Administrator.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message