Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with submit  RSS feed

 
Gabriel Fox
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a Java script event handler that get fired, when a user presses the return key (enter) while using my JSP screen. Because,
i just seem to get my error page (JSP), if the user presses enter key, instead of the
submit button(or <input type="button">
All ideas will be appreciated !!!
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a dup (offtopic) of the same question here. Please don't post the same question in more than one forum. Thanks.
- Peter
 
Geeta Ramasami
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
U can track the key press using event onKeyPress.Call a function in onKeyPress and in the function use keyCode = 13 to check if it is a enter key
Geeta
 
Gabriel Fox
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!