473,324 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

decouple parent window from children

Is there a way to decouple the linkage between a parent and a child
window?

Does the parent window have any sort of a collection that holds all the
children that it has spawned?

I want to break that connection from the parent side or the child
side, it doesn't matter as long as the communication link is completely
broken. I don't want the parent to be aware of the child and
vice-versa.

I don't want to close the parent or any of the children either.

Jul 19 '06 #1
2 2713

epaetz wrote:
Is there a way to decouple the linkage between a parent and a child
window?
When you open a new window, there is no parent-child relationship
between the browser windows in a sense.
Does the parent window have any sort of a collection that holds all the
children that it has spawned?
Not a collection. However, when you open a new window, the
window.open() method will return a reference to the window that you've
opened.

"Child" windows know who opened them through window.opener property.
I want to break that connection from the parent side or the child
side, it doesn't matter as long as the communication link is completely
broken. I don't want the parent to be aware of the child and
vice-versa.

I don't want to close the parent or any of the children either.
When you close the parent window, none of the "child" windows will
close and vice-versa.

Jul 19 '06 #2
Here's the behavior I'm observing.

I have two web applications. Each one uses a browser session cookie on
the client's browser window.

I created a simple portal page that has a link to each of the two apps.
When you click on either link, it opens the respective app in a popup.

When I open the first app, I can use the app normally. I then open the
second app which also works normally. But when I attempt to use the
first app, it appears to have lost it's session cookie, or as I
suspect, it's session cookie has been replaced with the session cookie
from the 2nd popup.

Why do I suspect this? If I close all the open session, and reopen the
portal and click on the first application, I can copy the URL from the
first application and paste it into the url of the parent and then have
complete access to the first application. It appears that the parent
window also gets session cookie of the popup!

Is this normal behavior for children and parent windows?

Thanks,
E
web.dev wrote:
epaetz wrote:
Is there a way to decouple the linkage between a parent and a child
window?

When you open a new window, there is no parent-child relationship
between the browser windows in a sense.
Does the parent window have any sort of a collection that holds all the
children that it has spawned?

Not a collection. However, when you open a new window, the
window.open() method will return a reference to the window that you've
opened.

"Child" windows know who opened them through window.opener property.
I want to break that connection from the parent side or the child
side, it doesn't matter as long as the communication link is completely
broken. I don't want the parent to be aware of the child and
vice-versa.

I don't want to close the parent or any of the children either.

When you close the parent window, none of the "child" windows will
close and vice-versa.
Jul 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Walt Borders | last post by:
Hi, My problem: Merging two datasets deletes parent elements, preserves all children. I've created two dataSets. Each use the same schema, parent-child nested tables. The first dataSet is...
0
by: Karthick Kumar | last post by:
Hi, I need to create a simple parent/child hierarchical menu. I have alread used the Treeview control but my requirement is slightly different than the Treeview control. I already have the kind...
4
by: Steve | last post by:
I have the MDI MFC application ported to .NET. Now this application include mixed managed/unmanaged code. The application displays progress dialog with the cancel button during lenghtly...
4
by: Danny Tuppeny | last post by:
Hi all, I've been trying to write some classes, so when I have a parent-child relationship, such as with Folders in my application, I don't have to remember to add a parent reference, as well as...
1
by: Bill Borg | last post by:
Hello all, Simple chat app, where the site owner has a master window with all requests for chat, status of each room, etc., and child windows for each separate chat in which the owner is...
2
by: Jim Shank | last post by:
I am really trying to find the best OOP way of doing this. I have a parent MDI form with multiple children and I am trying to communicate variables between them. I have been able to successfully...
1
by: gayatri_choda | last post by:
Hi, I am calling a pop -up ( a jsp page) window with the Window.open method from the parent ( a jsp page) . My pop-up window contains some input fields. Now on clicking the "Ok" button in the...
8
by: Rick | last post by:
VS 2005 I' m setting up a parent/child datagridviews in a form. I am doing a lot of this by hand coding in order to get the feel of things. I want a change in the parent table to trigger a...
4
by: Buddha | last post by:
Hello, I posted this on two forums, without too much help .. and I am kinda stuck in this. I need to refresh the parent page from the second child window which is opened by the first child and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.