By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,948 Members | 1,559 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,948 IT Pros & Developers. It's quick & easy.

Refresh Help

P: n/a
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

Aug 31 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ASM
baggy wrote:
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.mor...popup_oui_non/
(not really necessary to understand very more than yes no)
If mother of 2 daughters is closed anything work

--
Stephane Moriaux et son [moins] vieux Mac
Aug 31 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.