booboo0912
Programmer
I'm trying to troubleshoot a problem, which isn't always consistent, so I'm looking at different possiblities for the solution. Here's my set up:
I have a showModalDialog window/form with an input box and a submit button. My form tag looks like this:
<form name="myPage" action="goto.asp" onSubmit="window.close();" method="post">
My input tag is the standard <input type="submit" name="test" value="Submit">
SOMETIMES, when a user hits the submit button, the data is sent to the database without any problems, the window closes, and everything looks good. OTHER TIMES, which I can't seem to duplicate to troubleshoot, when a user hits the submit button, the window closes, but the information hasn't been submitted to the database. No error message, nothing!
My question is this...since I'm using onSubmit="window.close();" and action="goto.asp" (which is the page that sends the info to the database) in the form tag, could it be possible that the window is closing before the action="goto.asp" gets executed? What is the order of execution...which happens first, the onSubmit= or action=? Like I said, sometimes it works, other times it doesn't...is this a question of processor speed??? Or some other computer aspect that I'm not aware of?
Thanks in advance!
I have a showModalDialog window/form with an input box and a submit button. My form tag looks like this:
<form name="myPage" action="goto.asp" onSubmit="window.close();" method="post">
My input tag is the standard <input type="submit" name="test" value="Submit">
SOMETIMES, when a user hits the submit button, the data is sent to the database without any problems, the window closes, and everything looks good. OTHER TIMES, which I can't seem to duplicate to troubleshoot, when a user hits the submit button, the window closes, but the information hasn't been submitted to the database. No error message, nothing!
My question is this...since I'm using onSubmit="window.close();" and action="goto.asp" (which is the page that sends the info to the database) in the form tag, could it be possible that the window is closing before the action="goto.asp" gets executed? What is the order of execution...which happens first, the onSubmit= or action=? Like I said, sometimes it works, other times it doesn't...is this a question of processor speed??? Or some other computer aspect that I'm not aware of?
Thanks in advance!