Print Page | Close Window

feedback parent window of popups(Refresh)

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=10123
Printed Date: 31 March 2026 at 2:42pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: feedback parent window of popups(Refresh)
Posted By: meteor
Subject: feedback parent window of popups(Refresh)
Date Posted: 24 April 2004 at 12:46am

hello
how can i feedback parent window of current popuped window?
think of : i want to open a popup and after closing it or change any other thing want to refresh parent window . like : i checked 20 checkbox for deletion and after clicking submit button a popup show that users deleted, i want after closing popup the parent window refresh automatically....



-------------
Sincerely
--------------------
http://www.TacPlusPlus.com - PowerFull Scripts For NTTacPlus



Replies:
Posted By: 808Rider
Date Posted: 24 April 2004 at 12:48am

It does this in Web Wiz Forums when you use the Admin feature on a post to lock it or move it.



-------------
PodcastPUP: http://podcastpup.com - http://podcastpup.com
808Talk: http://808Talk.com - http://808Talk.com
808TTV: http://808Talk.tv - http://808Talk.tv


Posted By: Semikolon
Date Posted: 24 April 2004 at 5:43am
you have to use javascript.

try looking in the pop_up_* files in WWF and you will probably find something


Posted By: meteor
Date Posted: 24 April 2004 at 11:20am

Finally Found the Way:
Here is a code that refresh parent window and closes the the popup in one operation.

<script language="JavaScript">
<!--
function refreshParent() {
window.opener.location.href = window.opener.location.href;

if (window.opener.progressWindow)

{
window.opener.progressWindow.close()
}
window.close();
}
//-->
</script>

or This One
window.opener.location.reload()

OR
<BODY onload=""window.close(); window.opener.location.reload(true);"">

OR
place this in the pop-up's <body> tag:
onunload="window.opener.location.reload();

OR
<a href="#" onclick="opener.window.location.reload();self.close();return false;">Close</a>

OR
I prefer to use :
window.opener.location = window.opener.location INSTEAD of window.opener.location.reload()
this way it avoids displaying an IE alert box on certain browsers asking if you want to retrieve the values from the server again...
And  window.opener.location.reload(1) will force loading from server instead of cache

older browsers dont support the reload() function i suppose:

<a href="#" onclick="opener.window.location=opener.window.location;self. close();return false;">Close</a>

(Simple Internet Search resault)
  



-------------
Sincerely
--------------------
http://www.TacPlusPlus.com - PowerFull Scripts For NTTacPlus


Posted By: dpyers
Date Posted: 24 April 2004 at 11:42am
Useful post meteor

-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net