View Single Post
Old 09-05-2012, 08:57 AM   PM User | #3
Sx, codeforums
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Sx, codeforums is an unknown quantity at this point
Logic Ali,

The script still does not work.
Thanks a ton for you're reply!
I have changed the .js and got rid of the "px". The outcome in my browser is the exact same as when before. When i combine the two scripts it only shows the iframe as i tiny little square.

Thanks for explaning the css bit.

function autoResize(id){
var newheight;
var newwidth;

{
newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
}

document.getElementById(id).height = newheight;
document.getElementById(id).width = newwidth;
}
Sx, codeforums is offline   Reply With Quote