Results 1 to 3 of 3
Nov 27, 2007, 10:24 #1
- Join Date
- Nov 2007
- 0 Post(s)
- 0 Thread(s)
Refreshing a window after submitting data in the pop up !
In window B I have updated several fields and pressed SUBMIT.
I wish that now after submitting the data from WINDOW B - WINDOW A will refresh to show the changes.
I've created a validation function in WINDOW B that runs on the onclick event of the SUBMIT button and this is the code :
self.close(); window.opener.location.reload(true); document.myform.submit();
Using the method described - Window A is always refreshed after window B is submitted and closed, but sometimes I see the changes reflected and sometimes not ! (it's pretty random).
It's as if - the refresh runs parallel to the submission, and sometimes it runs after , so I see the changed data, and sometimes it runs before - so I don't see any difference !
How can I solve this ???