You could try the following:
In the parent frame, include a function like this one:
Code:
function getDimensions()
{
// suppose the iframe's id and name are both 'child_frame'
var iframe = document.getElementById('child_frame');
var iframe_body = top.child_frame.document.getElementByTagName('BODY')[0];
iframe.style.height = iframe_body.scrollHeight;
iframe.style.width = iframe_body.scrollWidth;
}
Then put a transparent gif at the end of the <BODY> tag of the page inside the iframe like this:
Code:
<img src="../images/trigger.gif" onLoad="getDimensions()"/>
This should resize the iframe to the desired size, or at least something similar.
Bookmarks