please can someone explain why this is happening: i have a web page with user details which enables those details to be edited by the user opening a popup window by clicking on a particular link.
the popup window then enables user details to be updated when the popup window form is submitted.
i want the main web page to be updated and filled with new updated user details after the update is made, so i have put the following code in the popup window form: onsubmit="window.opener.location.reload(true);window.opener.focus();window.close()".
this reloads the main web page, and closes the popup window.
i thought this would enable the main web page to reload with the updated user details but it doesn't. on refreshing the main web page though, the updated details show.
can anyone explain why when the page reloads through javascript code the updated details do not immediately show?
the popup window then enables user details to be updated when the popup window form is submitted.
i want the main web page to be updated and filled with new updated user details after the update is made, so i have put the following code in the popup window form: onsubmit="window.opener.location.reload(true);window.opener.focus();window.close()".
this reloads the main web page, and closes the popup window.
i thought this would enable the main web page to reload with the updated user details but it doesn't. on refreshing the main web page though, the updated details show.
can anyone explain why when the page reloads through javascript code the updated details do not immediately show?