•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 392,072 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,148 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2899 | Replies: 3
![]() |
•
•
Join Date: Sep 2006
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hello ,
I am having a problem where the parent window is controlling a popup child window, and when the parent window refreshes or changes a query, the child window var gets nulled, forcing the child to refresh.
What is a way to solve this by still controlling a child after parent refresh without using frames.
I have read about PDOM Persistant Object Document Model. But I just don't understand how to use it in this scenario. Advice with an example would be much appreciated!
Thank you.
I am having a problem where the parent window is controlling a popup child window, and when the parent window refreshes or changes a query, the child window var gets nulled, forcing the child to refresh.
What is a way to solve this by still controlling a child after parent refresh without using frames.
I have read about PDOM Persistant Object Document Model. But I just don't understand how to use it in this scenario. Advice with an example would be much appreciated!
Thank you.
Without seeing the code it is hard to say...
Am I correct in assuming the parent window calls a child window of the same name every time it is refreshed or the query changes?
Just a shot in the dark...
You could try having the parent window assign a different name to the popup window every time.
Wouldn't that stop the parent window from resetting the variables of the child window that is already open?
Am I correct in assuming the parent window calls a child window of the same name every time it is refreshed or the query changes?
Just a shot in the dark...
You could try having the parent window assign a different name to the popup window every time.
Wouldn't that stop the parent window from resetting the variables of the child window that is already open?
Last edited by FC Jamison : Sep 19th, 2006 at 12:43 pm.
Yes, it would. What you no longer have, though, is a valid reference within the child window, to the original parent window. If the goal is for the child window to make further reference/changes to the parent window after the parent has refreshed, I think that's not possible.
If the goal is for the refreshed parent window to not re-generate the child window, then yep... make script changes in your parent window to check to see if there is already a child window. If so, don't re-create it.
If the goal is for the refreshed parent window to not re-generate the child window, then yep... make script changes in your parent window to check to see if there is already a child window. If so, don't re-create it.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
- Parent/Child Windows References (JavaScript / DHTML / AJAX)
- One form, posting to two scripts? (PHP)
- Calling function in a child window from main parent window (C#)
- Windows programming - C - Save file function (C++)
- one line code request, closing the active child window (C#)
Other Threads in the HTML and CSS Forum
- Previous Thread: Inserted Calendar causing problems w/ Page
- Next Thread: css vs. iframes



Linear Mode