It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Help plz: Iframe automatic size..

Help plz: Iframe automatic size..

Postby adir on Sat Dec 18, 2010 11:00 pm

Hello,
I have build a tree view forum, I have used the iframe tag to import it to my wordpress blog .
I have a script that determine the size of the iframe on load:

<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>

The problem with the script is that the forum(tree view forum) only shows topics. I have another script that displays the contents of any issue only while clicking (Void). In actual the contents of each issue is charging ahead - but the resize function of the Iframe script not see it.

How do I fix it, that the size of the Iframe will change automatically?

Thanks alot
adir
 
Posts: 1
Joined: Sat Dec 18, 2010 10:54 pm

Who is online

Users browsing this forum: No registered users and 4 guests