Announcement Announcement Module
Collapse
No announcement yet.
how to refresh parent window. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to refresh parent window.

    Hi, with spring mvc 3.1 and jstl, I used window.open opens a popup window.
    In the popup window, I used the following script to close the popup window and reload its parent window.
    Code:
    function refreshParent() {
                window.close();
                if (window.opener && !window.opener.closed) {
                window.opener.location.reload(true);
                } 
             }
    But parent windows doesn't get refresh, because I the value that assigned to the variable in its controller is not updated, until I pressed the reload page button on the browser.

    What is wrong with my script as shown above?

    Thanks
    Sam
Working...
X