View Full Version : DHTML Window widget (v1.02) - control parent window from iframe across domains

04-13-2007, 11:55 PM
1) DHTML Window widget (v1.02)
2) http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Hey there - this is a great script! Solves at least 90% of my issues with this project. Many, many thanks.

I'm using the <iframe/> version of the dhtmlwindow object and the contents of the iframe reside on a different domain to that of the parent window. I need to call the hide() method of the object to close the window, but, from an event within the iframe (a button click), so I used parent.MYDHTMLwindow.hide().

Worked great when everything was local... now the hide() method just won't hide the window.

My question is (and I'm a noob to all this.. so please bear with me) - can I/is it possible, to target the parent window from within the iframe and across the two domains?

Any suggestions greatly appreciated!

04-14-2007, 12:36 PM
No, it is not.

04-14-2007, 12:39 PM
Anything inside the iframe is inaccesible after it's been placed there.