Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close.Window - Refresh

Status
Not open for further replies.

Esoteric

ISP
Feb 10, 2001
93
US
I open a new window to update some information then I want to close that window and have the original window REFRESH.

How would I do this?
 
Hi,

I think the best way to achieve this is to call a page (after the setting update information) that would refresh (recall) the "parent" window and close de "child" window. Perhaps using JavaScript.

Regards,
Luís Silva
 
Hi Esoteric,

place this javascript code after you finish update.

<script>
{
window.opener.parent.location = '<%=pageURL%>'
window.close()
}
</script>

pageURL, is the original page's URL
to make it dynamic, you use query string and pass it to your asp pages

hope this helps Chiu Chan
cchan@emagine-solutions.com
 
Hi,

You could use the code given by Chiu Chan or this:
Code:
<script language=JavaScript>
	window.parent.location.reload(true);
	window.close;
</script>

Regards,
Luís Silva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top