Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 08:43 pm EST

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 EST. The time is now 08:43 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