my web application has a main window. on clicking a link on main window it opens another window where user can make changes and this changes are required to be saved when user closes the window.
the window closes immediately and a request is sent to save the data.
now before the data is saved to DB if user clicks on same link he sees old data on the popup window.
(if user waits for some time before clicking on link again, this allows data to be saved and he can see latest data in that window)
how can I solve this problem?
I don't want to keep popup window open till the data is saved.