tlphipps wrote:
> Based on my experiences with thickbox, I don't believe this is true.
> I have code in thickbox iframes which will close the thickbox window
> whenever I call it.
> I use something like:  document.top.tb_remove()  (can't remember exact
> syntax)

Ok, starting from your suggestion that is not working actually, I tried some
combinations of "document", "top" and "parent".

After a few misses, I found out that you can access the parent window from
inside an <iframe> with this code :

parent.top

>From here, one can access the document element with :

parent.top.document

But most of the calls of custom Javascript functions don't need the document
element.

So the calls would look like this :

parent.top.foobar()

Thanks for the clue, tlphipps !

Hypolite

-- 
View this message in context: 
http://www.nabble.com/jqModal---How-to-close-the-modal-box-from-an-iframe-tp18183904s27240p18212464.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to