Hi, I have a pop-up, which gets user information and insert a record after user input values in the pop-up and click the "Add Record" button. I wrote the code like this:
document.form1.submit();
self.close();
I find that sometimes the user cannot insert record while sometimes it works fine (with the same data input).Is it possible that the "self.close" goes before the "submit" code so that it cannot get the data from the pop-up? Does the above code cause the problem? How to make sure the form is subbmitted before the pop-up close?
Thanks in advance!
document.form1.submit();
self.close();
I find that sometimes the user cannot insert record while sometimes it works fine (with the same data input).Is it possible that the "self.close" goes before the "submit" code so that it cannot get the data from the pop-up? Does the above code cause the problem? How to make sure the form is subbmitted before the pop-up close?
Thanks in advance!