473,233 Members | 1,755 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,233 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 2706

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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
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: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.