[Javascript] Can a reloaded parent window close its child?

Jim kilroy at lewiscounty.com
Sat Dec 27 12:11:56 CST 2003


Never mind, I didn't understand problem.


----- Original Message ----- 
From: "Paul Novitski" <javascriptlist at dandemutande.org>
To: "[JavaScript List]" <javascript at LaTech.edu>; <javascript at LaTech.edu>
Sent: Saturday, December 27, 2003 9:38 AM
Subject: RE: [Javascript] Can a reloaded parent window close its child?


> And to further complicate this sad affair, the orphaned child still
> recognizes its parent, even though the cruel parent has forgotten its
child.
>
> The child can interact with the parent [clone] even after it's reloaded:
>          window.opener.document.ParentForm.ParentTextbox.value = "Mommy!";
> and can even reload the parent with:
>          window.opener.document.location.reload();
> and still not lose the connection.
>
> If anyone has an idea how to bypass this problem of the amnesiac parent,
> I'd be grateful.
>
> Paul
>
>
> At 06:27 AM 12/27/2003, BEKIM BACAJ wrote:
> >Obvious and not obvious sametime
> >All the pages wiewed on browser win are to be considered as 'clones' of
> >the original generator.
> >So if one clone has a child, the other is not awear of it. Since a
> >reloaded page is just another clone, the last child does not belong to
> >him, because he is younger than this child and doesn't have any
knowlledge
> >of existance of his other clones nor his other relatives. Even if this
> >child can be legaly proclaimed as a child of reloaded window, it isn't, a
> >paradox that awaits our civilisation on horizon...
> >
> >>From: Paul Novitski <javascriptlist at dandemutande.org>
> >>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
> >>To: "[JavaScript List]" <javascript at LaTech.edu>
> >>Subject: [Javascript] Can a reloaded parent window close its child?
> >>Date: Fri, 26 Dec 2003 23:41:01 -0800
> >>
> >>I want my browser window to create a child window that says "Please
wait"
> >>while the parent window is reloading.  Unfortunately, when the parent
has
> >>reloaded, it appears to have forgotten the identity of the child:
> >>
> >>body onLoad="jsCloseChild();" onUnLoad="jsCreateChild();"
> >>
> >>The close function fails when I use either of these two techniques for
> >>creating and naming the child:
> >>
> >>=====================================
> >>function jsCreateChild(){
> >>         window.open('PleaseWaitChild.html', 'MyChild', '');
> >>}
> >>function jsCloseChild(){
> >>         MyChild.close;
> >>}
> >>=====================================
> >>var MyChild;
> >>function jsCreateChild(){
> >>         MyChild=window.open('PleaseWaitChild.html', 'WindowName', '');
> >>}
> >>function jsCloseChild(){
> >>         MyChild.close;
> >>}
> >>=====================================
> >>Can anyone provide a solution?
> >>
> >>Thanks,
> >>Paul
> >>
> >>
> >>_______________________________________________
> >>Javascript mailing list
> >>Javascript at LaTech.edu
> >>https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> >_________________________________________________________________
> >The new MSN 8: advanced junk mail protection and 2 months FREE*
> >http://join.msn.com/?page=features/junkmail
> >
> >_______________________________________________
> >Javascript mailing list
> >Javascript at LaTech.edu
> >https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list