Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - feedback parent window of popups(Refresh)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

feedback parent window of popups(Refresh)

 Post Reply Post Reply
Author
meteor View Drop Down
Groupie
Groupie
Avatar

Joined: 31 August 2003
Location: Iran
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote meteor Quote  Post ReplyReply Direct Link To This Post Topic: feedback parent window of popups(Refresh)
    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....



Edited by meteor
Sincerely
--------------------
PowerFull Scripts For NTTacPlus
Back to Top
808Rider View Drop Down
Senior Member
Senior Member

Vebro Solutions CEO http://www.vebro.net

Joined: 20 April 2003
Status: Offline
Points: 405
Post Options Post Options   Thanks (0) Thanks(0)   Quote 808Rider Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
meteor View Drop Down
Groupie
Groupie
Avatar

Joined: 31 August 2003
Location: Iran
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote meteor Quote  Post ReplyReply Direct Link To This Post 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
--------------------
PowerFull Scripts For NTTacPlus
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 24 April 2004 at 11:42am
Useful post meteor

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.