I've written a Javascript script that automatically resizes the height of an IFrame, depending on its content. This is done as soon as the content of the framed page is produced; in Firefox no problem, but in IE the script is correctly executed but no effect is seen: the method is called in a callback function. Any sugestions? If I execute the method using a button, it works perfectly, and the frame get resized.
I havn't the code right in front of me; the resizing method looks like this:
function resizeFrame(){
var frame = parent.document.getElementsById(window.me);
frame.style.height = document.offsetHeight;
}
And the calling function is like this:
//init function
bunding.doSomeWork(callbackFunction);
...
function callbackFunction()
{
//does some HTML output
resizeFrame();
}
I'm using Salesforce Ajax library.