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 / January 2005



Tip: Looking for answers? Try searching our database.

Kill Child window problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
veganeater - 27 Jan 2005 20:14 GMT
Hello again everyone,

I seem to have run into another problem... perhaps I'm just a bit slow.

The problem is something like this:
I have a popup window launched by a page sourced in an iFrame [master.html |
slave.html -> child_popup.html] and would like to find a method to close all
windows (popups) when the master window is closed. I have found a fair
amount of documentation on this fairly straightforward process however, it
would seem that the inclusion of iFrames screws with the settings somewhere
along the line.

How do would I make it so the "master" is aware of the "slave's" "children"?
Oh, to add insult to injury, index.html is also a static frameset (top nav,
bottom content) - though I don't think this should really effect anything so
long as the onUnload="childwindow.close()" lives in <frameset>

Basically, I know how to do it, just not how to get everyone talking to
eachother in a successful manner.

Any help would be greatly appreciated!

Thanks in advance!

|veganeater|
Randell D. - 31 Jan 2005 09:22 GMT
> Hello again everyone,
>
[quoted text clipped - 21 lines]
>
> |veganeater|

If someone were to close the parent then there is no reliable way to
'trap' that close and  fire it at all popups.

What you could do however is have the children read a value from the
parent every few seconds - If it cannot read the value, then assume the
parent has died, thus kill the children.

Perhaps someone else though has an alternative idea... I think there is
a way to reference the parent window and check for a true/false which
might help too...

does this help steer you forward?

randelld
veganeater - 31 Jan 2005 17:43 GMT
> > Hello again everyone,
> >
[quoted text clipped - 36 lines]
>
> randelld

Thanks Randelld,

Your words are insightful however, I have made use of the onUnload command
to pass instruction to the children in the past. The point of contention in
this issue is that the pages doing the calling of the children are being
displayed in an iframe (not just an ordinary one either, a dynamically
resized one based on the content being displayed). What I need is to find a
way to pass the onUnLoad function to the pages in the iframe and thus to the
popup/child itself.

Are frames independent or are they children processes aswell?

Again, thanks for your help, it is certainly very interesting and I will
keep it in mind.

|veganeater|
 
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.