closing window.js pseudo-window from iframe?

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

First of all, I am using the prototype.js/window.js libraries and this is not a window, it's a Window which is really a pseudo-window, a div dressed up like a window...

Second of all, I solved the problem by writing the content directly into the div without using the window.js iframe doc loader.

But when I was using the iframe, I could not put a "close" button or link on the Window that worked. (close in this case really means calling the window.js hide functions, there are a couple of different ones)

The only object I could access in the parent window was the location property, which I could change from the iframe. I could not access any other properties, methods, or functions in the parent window from the iframe. Investigating window.parent yielded [window object] but that was about all - except window.parent.location

However writing the content directly to the Window from the main doc provided access to the close/hide functions.

My solution works for now, but I spent way too many hours wrestling with the iframe and gave up - so I'd like to know, how to close/hide the pseudo window with code loaded in the iframe?