Hi,

Well i have done with Resizing an iframe according to the contents. and It's working fine. But the problem is when the inside the content called from any dynamic page i.e: Contract All | Expand All page, And when i clicked on Expand all the height of Iframe height will not increasing. . Please check the attached file.

Attachment 3866

Here is the code that i used for Resizing the iframe,

<script language="JavaScript">
<!--
function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('the_iframe').contentWindow.
document.body.scrollHeight;

//change the height of the iframe
document.getElementById('the_iframe').height=
the_height;
}
//-->
</script>

and in the body create the iframe tag:

<iframe width="700" id="the_iframe"
onLoad="calcHeight();"
src="testing_page.shtml"
scrolling="NO"
frameborder="1"
height="1">
</iframe>

(This code will only work on Microsoft Internet Explorer 5.5+, Mozilla Firebird, and Netscape 7)