Fea,
You need to add this javascript function to your form jsp files (or
template)
function noenter() {
return !(window.event && window.event.keyCode == 13); }
and then add an onkeypress attribute to your text input fields that
looks like this:
onkeypress="return noenter();"
-R
fea j
Unfortunately that would still cause traffic to the server, which is
probably fine for an Intranet App, but wouldn't be too friendly if you have
dial-up internet users.
(*Chris*)
On 10/26/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
On 10/26/06, fea jabi <[EMAIL PROTECTED]> wrote:
> Is it possi
On 10/26/06, fea jabi <[EMAIL PROTECTED]> wrote:
Is it possible in struts to disable the functionality of the enter key which
would usually execute the first submit button in the page. Can we do this at
form level?
If so how to do this?
http://www.google.com/search?q=struts+enter+submit
I us
sday, October 26, 2006 5:01 PM
Subject: disable enter key functionality
> Is it possible in struts to disable the functionality of the enter key which
> would usually execute the first submit button in the page. Can we do this at
> form level?
>
> If
It's definitely not something that Struts can do, but you can do that using
a JavaScript onkeypress handler that returns false if window.event.keyCode== 13.
(*Chris*)
On 10/26/06, fea jabi <[EMAIL PROTECTED]> wrote:
Is it possible in struts to disable the functionality of the enter key
which
w
Is it possible in struts to disable the functionality of the enter key which
would usually execute the first submit button in the page. Can we do this at
form level?
If so how to do this?
Thanks.
_
Add a Yahoo! contact to Windows
6 matches
Mail list logo