Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hey guys, I have a problem with a

Status
Not open for further replies.

dendenners

Programmer
Jul 17, 2001
110
IE
Hey guys,
I have a problem with a jsp page (using weblogic). On this page I have a few text fields. I also have a submit button which uses javascript to set a command which is sent back to the servlet for processing every time the button is pressed. However, when someone presses return while focussed on one of the text fields on the page, the form is submitted to the servlet with a blank command! This is not the case on most of my jsps, just a couple, but I can't for the life of me see the difference between those that work and those that do not. Has anyone encountered this problem before and are there any solutions? Thank you

p.s. I also posted this on the weblogic forum but I'm not sure if its weblogic-specific
 
actually it's browser specific (when enter key is pressed, ie submits the form). The question's just been asked in the javascript forum recently, see the answer here -> thread216-141327, scroll down to tleish's function, it's great and it's working fine
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top