0

Hi All,

I have a function reloaddash(1); for refresh the db.js in db.js file which sends a ajax request to the action file.

In this .js itself I draw the table,td,tr for display. I dont use seperate .jsp file to draw. By onclick a link in this js file I opened a new window using window.open(URL).

Now my confusion is If I close this new window I need to refresh this .js file that is i need to call the function reloaddash(1); But I dont know how to call this function on the closing of new window.

Is there any option to call a function from w.indow.close or parent.opener. I tried a lot.

Plz suggest. Thanks in Advance

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Shanti C
0
<a href="javascript:window.opener.location.reload();window.close()">Close</a>

It will create a close button in the child window.
May this work for you.

Edited by mahavir123: n/a

0

Hi All

One thing i forgot to mention the new window is a .jsp file which i am passing in the window.open(URL). In the new window itself i have close image. But when I close the new window I need to call the refreshdash(1); function in the same js

thanks in advance

0

call parent refresh before closing child window like:

window.opener.refreshdash(1);

or something like

window.opener.document.location.href = window.opener.document.URL;
window.close();
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.