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
on submit or submitTag override the onClick property and or setup your own JS
function to handle the onClick event
Anyone else?
M-
This e-mail communication and any attachments may contain confidential and
privileged information for the use of the
designated recipients named above. If you are n
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
5 matches
Mail list logo