I have an application where I have to show a pop up on click of a button and the values user enter in the pop-up are to be processed backend and written to database. Immediately, I need to refresh the parent where that information written by pop-up has to be read from databse and displayed.
Things work fine if I give setTimeOut of atleast 100ms on the call to opener.document.reload(), but I don't want to take a risk because I'm not sure about the backend process time.
Hence I want to accomplish this by passing the form fields of pop-up onto the parent and closing the pop-up then itself and soon after, processing those form values and updating on databse and refreshing the parent page from parent itself.
I'm not getting the way to know in the parent that the pop-up is closed so that processing can be started immediately. Could anybody help me on this?
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff: