Although I recommended thickbox, I'm not familiar with it. I did go over the specs though, and it looked highly suitable, well conceived, and written.
And, unless something pretty odd is going on with it that I am unaware of, its iframes should behave like any others. If they do, the answer is - Yes, as long as both pages are on the same domain.
From a page in an iframe, the containing (usually the top) page (actually window) is the parent. So you could do something like so on the page in the iframe:
Code:
parent.document.forms['form_name'].elements['input_name'].value='whatever';
or:
Code:
parent.document.getElementById('id_of_element').firstChild.nodeValue='whatever';
In the first case form_name would be the name of the form on the top page and input_name would be the name of an input element (button, text field, hidden field, etc.) in that form, and whatever would be the value you wish to assign to it.
In the second case id_of_element would be the id of - say, a span on the top page that contains text only (at least a entity), and whatever would be the text to assign to it.
There are many variations on how this parent reference may be used, the above are just two examples. But, as I said, the two pages must be on the same domain.
If you want to carry out complex actions on the top page, it is best to have a function already on the top page that will do so, and to call it from the child page in the iframe like so:
Code:
parent.complexFunc();
where complexFunc is the name of the function on the top page.
Bookmarks