Hi
Having a problem with iframe resizing when the iframe body is a jsp file which contains a dynmically built ajax table.
Users select different options from a drop down. All but 1 is a standard static jsp file. The other is a jsp file with a dynamic ajax table which is generated the second the user select this option from the drop down. Problem is the javascript is not getting the correct height for the dyanmically ajaxed jsp file.
Here is the iframe which is loading the contents file.
<iframe id="Editor" name="Editor" src="" scrolling="no" frameborder="0" allowtransparency="true" onLoad="resizeIframeToFitContent(this)"></iframe>
resize call:
function resizeIframeToFitContent(iframe) {
iframe.height = Editor.document.body.scrollHeight + 300;
iframe.width = Editor.document.body.scrollWidth;
} // resizeIframeToFitContent
As a current workaround I am adding 300 manually to the height this works but throws the height of the normal jsp files well out and makes the page to tall.
Any ideas?