Welcome to Geeklog, Anonymous Friday, April 19 2024 @ 05:12 pm EDT

Geeklog Forums

Auto Resize IFRAME in Static Page


auspexian

Anonymous
I have a weird problem with Iframe. I am using the Dynamic Resize Iframe script by members of Geeklog. The problem is some how, on the first load of the home page with Geeklog, the Iframe doesn't display anything. If I reload, then the static page works great.

Anyone knows why? Fix?

TKs

John

Text Formatted Code

<script language="JavaScript">
function iFrameHeight() {
if(document.getElementById && !(document.all)) {
h = document.getElementById('iframename').contentDocument.body.scrollHeight;
document.getElementById('iframename').style.height = h;
}
else if(document.all) {
h = document.frames('iframename').document.body.scrollHeight;
document.all.iframename.style.height = h;
}
}
</script>

 
 Quote

All times are EDT. The time is now 05:12 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content