aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to Close multiple child windows from a parent window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to Close multiple child windows from a parent window" Watch "How to Close multiple child windows from a parent window" New topic
Author

How to Close multiple child windows from a parent window

Uppala Srinivas
Greenhorn

Joined: May 11, 2006
Posts: 8
Hi ,

I am facing problem in closing the child windows which are opened from my Parent window. I have different modules in my application. If am opening multiple child windows from one of the module i am able to close all the child windows when i click the logout on my parent window using the below code.


am getting all the references of the child windows using array and closing all at a time.


But problem is when am opening 1 child window from one module and another child window from another child window , and if i click the parent window logot button the latest child window which i opened is getting close and the other is not.

Please help me in this. Greatly appreciate it.>
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Only way the parent would be able to keep track of who opened what is to open all of the pop up windows from the parent window



from the child windows you would have to do




Eric>
Uppala Srinivas
Greenhorn

Joined: May 11, 2006
Posts: 8
I forgot to mention , when i move from one module to another module the global variable in which we kept the popup references will be resetted again. So is there any possiblity to persist the global variable.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Nope

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Close multiple child windows from a parent window
 
Similar Threads
parent-child window relationship
Windows opened from menu items move down and to the right
Refershing the parent page from the second child
Implementing the child window in JSF.
Problem while calling main() method.