User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Sep 2006
Posts: 1
Reputation: Oshaka is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Oshaka Oshaka is offline Offline
Newbie Poster

Control Child Window After parent refresh W/O Frames

  #1  
Sep 17th, 2006
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Control Child Window After parent refresh W/O Frames

  #2  
Sep 19th, 2006
I don't believe this is possible. As you say, once you close the parent, the reference to it is nulled. I've never heard of "PDOM".
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 427
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 17
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Control Child Window After parent refresh W/O Frames

  #3  
Sep 19th, 2006
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?
Last edited by FC Jamison : Sep 19th, 2006 at 12:43 pm.
Reply With Quote  
Join Date: Dec 2004
Posts: 1,589
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 34
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Control Child Window After parent refresh W/O Frames

  #4  
Sep 19th, 2006
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 12:06 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC