I'm still stuck with my jqModal iframe closing problem.
But this time it's the other way I can't figure out.
Here is my HTML/JS code for the parent windows :
<div id="div_modal" class="jqmWindow"><iframe id="iframe"
src="form.html"></iframe></div>
$().ready(function() {
$('#div_modal').jqm(); //Initialization of the modal box
$('#iframe').contents().find('input').click(function() {
$('#div_modal').jqmHide(); //The button inside the iframe must close the
modal box in the parent
})
});
The documentation says that "contents()" return the HTML document when
called on an <iframe>, but it returns always "null".
Someone's got an idea ?
Hypolite
--
View this message in context:
http://www.nabble.com/jqModal---How-to-access-the-parent-window-from-an-iframe--solved--tp18183904s27240p18247490.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.