Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Re: closing the showModalDialog


Message #1 by Christine Sun <Christine_Sun@c...> on Thu, 1 Aug 2002 09:27:22 -0700
before you close your new window, use window.opener.close(); to close the
parent window, then window.close(); or self.close(); to close itself.

-----Original Message-----
From: Arun Kumar [mailto:akumar@g...]
Sent: Wednesday, July 31, 2002 3:21 AM
To: javascript
Subject: [javascript] Re: closing the showModalDialog


the problem is if showModalDialog is opened I am unable to close the parent.
so I have to check if showModalDialog  is opened , then I have to close it,
then I want parent to get closed. but don't know how.

----- Original Message ----- 
From: "Joe Fawcett" <joefawcett@h...>
To: "javascript" <javascript@p...>
Sent: Wednesday, July 31, 2002 3:36 PM
Subject: [javascript] Re: closing the showModalDialog


> If you close the parent window from another window then the modal dialog 
> should close. So if you open a new window using window.open:
> var oNewWin = window.open(...
> then show a modal window from oNewWin you do:
> oNewWin.close();
> 
> Joe
> 
> 
> >From: "Arun Kumar" <akumar@g...>
> >Reply-To: "javascript" <javascript@p...>
> >To: "javascript" <javascript@p...>
> >Subject: [javascript] closing the showModalDialog
> >Date: Wed, 31 Jul 2002 15:16:50 +0530
> >
> >Hi Friends,
> >I have a problem with showModalDialog.
> >I want to close the showModalDialog and its parent from a another window.
> >how I can handle the showModalDialog .
> >
> >Arun Kumar
> >Aithent Technologies, Gurgaon
> >91-124-6455511 ext.. 310
> >
> >
> >
> >---
> >
> >Improve your web design skills with these new books from Glasshaus.
> >
> >Usable Web Menus
> >http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> >r-20
> >Constructing Accessible Web Sites
> >http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> >r-20
> >Practical JavaScript for the Usable Web
> >http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> >r-20
> 
> 
> 
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> 
> ---
> 
> Improve your web design skills with these new books from Glasshaus.
> 
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

  Return to Index