Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / August 2005



Tip: Looking for answers? Try searching our database.

Refresh Help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
baggy - 31 Aug 2005 14:13 GMT
Hi,
I have a situation where I need to be able to refresh a windows parent
parent. I can not seem to use anything like

window.opener.parent.location.reload()

as by the time I execute the statement the parent has closed and all
connections closed and I am not even sure that would work!

Is there a way to reference a window to refresh it other than by using
window.parent or window.opener.

Thanks
Baggy
ASM - 31 Aug 2005 14:43 GMT
> Hi,
> I have a situation where I need to be able to refresh a windows parent
> parent. I can not seem to use anything like
>
> window.opener.parent.location.reload()

if parent.parent is the frameset itself :

opener.location=opener.location

if not, you call directly the frame by its name :

  opener.myFrame.location = ...

(I think there is no importance if this frame is in a frameset
 itself in top frameset - to verify ?)

> as by the time I execute the statement the parent has closed

You can't close a window it it hasn't be opened by window.open()
did your 'parent' be ?

but you can know if is yet opened

 alert(!!opener)
or
 if(!!opener) alert('yes'); else alert('no');

> and all
> connections closed and I am not even sure that would work!
>
> Is there a way to reference a window to refresh it other than by using
> window.parent or window.opener.

I think it's the only way each one can know each other

communication between 3 windows (mother + 2 daughters)
simple demo in french (open, exist?, close, messages) :
http://perso.wanadoo.fr/stephane.moriaux/truc/popup_oui_non/
(not really necessary to understand very more than yes no)
If mother of 2 daughters is closed anything work

Signature

Stephane Moriaux et son [moins] vieux Mac

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.