A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Engineering
»
HTML, CSS and JavaScript
Author
How to deny the Enter key press action
Harish Muthuraman
Greenhorn
Joined: Jun 10, 2010
Posts: 11
posted
Aug 30, 2010 03:20:06
0
I have a text box in the .jsp file.
Present condition : when the user enters the value in the text field and hits 'Enter' key the page is submitted.
Required : When Enter key is hit, the page must not be submitted.
Can any one help??
With Regards
Harish M
Avishkar Nikale
Ranch Hand
Joined: Aug 06, 2010
Posts: 173
posted
Aug 30, 2010 03:31:07
0
This is more of a HTML/Javascript question & you will need to
learn java
script events to this.
Enough help will be available on forum & internet.
http://www.coderanch.com/t/115776/HTML-JavaScript/Form-Submit-Hitting-Enter-key
Regards,
Avishkar Nikale
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
14
I like...
posted
Aug 30, 2010 07:32:33
0
Moved to the HTML forum.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: How to deny the Enter key press action
Similar Threads
Enter key form submission
HTML qn=== Urgent!!!
basic doubt
Strange - Page Submits!!!
Pressing enter key submits page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter