This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
This may seems fairly rudimentary, but has me stumped right now. We have a bunch of JSP pages, which render HTML to the browser ofcourse. Intially, when the user pressed the "ENTER" key on the keyboard, the form was always submitted. But then we made some changes to the JSPs and I think we broket it at that point. Now the keyboard "Enter" does not work, and the user has to use to mouse to click on the "Enter" button on the page, which is annoying to some users.
Thereason for the changes are as follows... Basically,some transactions take a little longer to process . We had some impatient users submitting the form multiple times to get a response and hence double-posting transactions. TO avoid that, we put in som Javascript which disabled all the buttons on the page until they got a response back. I think thats where we broke something. THe code is as follows....
Any advise on how to enable our Keyboard Enter Key will be greatly appreciated.
Thanks much! Veni
PS --> I did search this forum for solutions with out much luck.
Veni Velkoor
Ranch Hand
Joined: Oct 17, 2001
Posts: 65
posted
0
Sorry, I forgot to post my my changes that I made to the page as mentioned in my original post.
Here they are-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Is there a submit button in the form? Not just any button, but one that has submit semantics. For example an <input> or <button> with type of "submit".
If not, the enter key generally does not cause the form to submit itself.