R
Robert Degen
Hello,
I got a little problem. Seems very simple:
* I want to open a popup window
* Popup-window uses data from its father window.
BUT a parent.window does NOT point to the real parents window.
Alerting parent.window.location.href shows me, I'm at the wrong window
location.
So, how do I get back to my CREATOR window ? (If I am a popup).
By the time I can only fix it by....
1: ... // creation
2: var w = window.open("...", "...", "...");
3: w.parentWindow = window;
4: // child code
5: alert(window.parentWindow.location.href);
Works, IF child code is executed faster than line 3. Could be realised
with a refreshing timer bit would be anything BUT clean.
What I need is something that is initialized directly through
window.open-Call. I want something like:
4: // child code
5: alert(parent.location.href);
or
5: alert(window.parent.location.href);
Am I stupid ?
Please help
Regards
Rob
I got a little problem. Seems very simple:
* I want to open a popup window
* Popup-window uses data from its father window.
BUT a parent.window does NOT point to the real parents window.
Alerting parent.window.location.href shows me, I'm at the wrong window
location.
So, how do I get back to my CREATOR window ? (If I am a popup).
By the time I can only fix it by....
1: ... // creation
2: var w = window.open("...", "...", "...");
3: w.parentWindow = window;
4: // child code
5: alert(window.parentWindow.location.href);
Works, IF child code is executed faster than line 3. Could be realised
with a refreshing timer bit would be anything BUT clean.
What I need is something that is initialized directly through
window.open-Call. I want something like:
4: // child code
5: alert(parent.location.href);
or
5: alert(window.parent.location.href);
Am I stupid ?
Please help
Regards
Rob