Click to See Complete Forum and Search --> : refresh another window


anarchist
06-04-2003, 08:49 AM
this is a simple question at least it should be

I have a window that opens a popup which will then open another popup and close its self
the third window needs to refresh the first (also a named popup)

one method that should work would be window.opener.opener.refresh, however window.opener closed itself on creation of window thus breaking this possable link

I tried windowname.refresh() however this seemed to fail, is there another method that I've missed or does it appear to be as simple as getting the window name wrong?

Khalid Ali
06-04-2003, 09:19 AM
I doubt that you can target an orphan popup window,but I could be wrong.
Logically when there is no centralised source that knows about a window then there is no way for JavaScript to ask Operating System to give it the reference to any or none popups opened in a system.

anarchist
06-04-2003, 10:07 AM
thanks

its always good to know that the reason my codes not working's because I'm trying to do the imposable :) well last time I said something was impossable we figured it out, actually think it was the last 2 times (do I sound pessimistic?)

I'll keep trying as its quite important that it works

I assume windows knows all about what windows are about just doesnt give javascript access, as a target= on a link will open a new window or reuse an old one, and the same with a window.open I thnk

do you think I could make the window I need to refresh adopt my new window?

oldwin -> opens midwin
midwin -> opens newwin
newwin.opener=midwin.opener
midwin -> closes self
newwim -> refreshes oldwin

do you think this is possable or is the opener property read only?

going to try it now

Khalid Ali
06-04-2003, 10:13 AM
Interesting bit...I think it might work..try and let me know too

anarchist
06-04-2003, 11:15 AM
hey it worked :)

I've attached my test code, all very basic but it does the job.
unfortuanatly I have to figure out how to use it now in a very complex web application