Jump to content

dynamic frame row height based on content


scarhand

Recommended Posts

Trying to get this code to work:

 

<script type=”text/javascript”>
function resizeframe() 
{
  var ff = parent.document.getElementById ? parent.document.getElementById('formframe') : parent.document.all['formframe'];
  var fc = ff.contentDocument ? ff.contentDocument : document.frames('formframe').document;
  var sf = parent.document.getElementById('shoutframe');
  
  sf.rows = fc.body.offsetHeight + ", *";
}
</script>

<frameset id="shoutframe" onload="resizeframe();">
  <frame id="formframe" src="shoutform.php" frameborder="0" scrolling="no">
  <frame src="shoutdiv.php" frameborder="0" scrolling="auto">
</frameset>

 

As you can see, all I want it to do is set the frame row's height based on its content.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.