Search code examples
javascriptjquerycoldfusioncoldfusion-9

Javascript reload page after popup submit Coldfusion


I have a popup window where my user can edit information displayed on the parent page. When someone press submit changes on the popup window i need the popup to close and also the parent page to reload to display the new information.

I know there are a lot of examples out there but the questions displayed here did not provide me with enough information to complete my task.

I am currently using onClick="history.go(0)" which take me back to the parent page but does not reload the page


Solution

  • To close the pop up window from within the pop up window use this:

    self.close();
    

    To RELOAD the window that opened the pop up use this in the pop up window:

    window.opener.href = 'URL';
    

    This should be pretty close to what you need.