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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alert w/keeping keyed values from form

Status
Not open for further replies.

blackte

Programmer
Jul 24, 2001
80
US
I a form that has some edits that are fired when the user presses an OK key at the bottom of the page.

But my problem is when the alert box displays and the user presses the OK button on the box, it then redisplays the form like the refresh button has been pressed. I know why the screen redisplays, it's because of my action tag on the form statement(I think).

Is there a way to fire an alert box but after the user presses OK on the alert box, that it keeps the values on the form that the users keyed, prior to getting the error message box?


Thanks TBlack.
 
If I understand you correctly, put something like this in your <form> tag: onSubmit="return myFunction(this);"

This will cause the submit process to pass through your function first.



There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top