Re: disable enter key functionality

2006-10-27 Thread Richard Yee
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

Re: disable enter key functionality

2006-10-26 Thread Chris Pratt
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

Re: disable enter key functionality

2006-10-26 Thread Wendy Smoak
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

Re: disable enter key functionality

2006-10-26 Thread Martin Gainty
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

Re: disable enter key functionality

2006-10-26 Thread Chris Pratt
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

disable enter key functionality

2006-10-26 Thread fea jabi
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