This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have several links that are in the frame of a window. The containing window is generated by an application. Please note that I do NOT have any control over the containing window. That means I cannot write any scripts in it's <HEAD> tag. However, I do have control of the contents of the frame the links are in. I have specified the links to open in their own target windows - and they do.
I'd like for all these child windows to close when the containing window, mentioned above, is closed.
Your containing window is a page with few frames , this is my understanding ! Is it possible for u to store all the handles of the child windows in ur parent window ( this window which has all your links). Once you have the handles u can close those child windows in the onUnload() or onBeforeUnload() of ur parent window. But if you refresh ur parent window, u wll loose all the handles stored in the array of ur parent window.
SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
Rajeev, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.
I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.
Joined: Aug 27, 2002
Bear , I will try to avoid the abbreviations. I really got used to it..
Anne, Have a look at the html source, hope it helps you .. It was very simple but you know what I spent around 2 hrs to make it out.. I was trying to invoke a child window function from parent window. my bad !! anyway have a look at the html !!
Joined: Apr 19, 2004
I appreciate you putting the effort. But it doesn't answer the question. The child windows are opened from a frame with target windows of known names.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com