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.

10 Years
Discussion Span
Last Post by tgreer

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".


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?


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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.