wood burning stoves 2.0*
The moose likes JSF and the fly likes Don't want to submit form on Enter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Don Watch "Don New topic
Author

Don't want to submit form on Enter

Ryan Waggoner
Ranch Hand

Joined: Jun 27, 2007
Posts: 75
Hey guys,
The enter key is causing me a few problems. Recently to get around this, I have been adding onkeydown="enterTab();" to every control, but that is starting to get kind of annoying.

Do I have any other options?


Thanks!
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
This returns false only if the enter key is pressed.

If you have any textarea in the form, then you need to remove the onkeypress from the form and apply it on the appropriate input elements only.>
Ryan Waggoner
Ranch Hand

Joined: Jun 27, 2007
Posts: 75
Thank you very much
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You're welcome.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Don't want to submit form on Enter