scarhand Posted April 2, 2009 Share Posted April 2, 2009 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. Link to comment https://forums.phpfreaks.com/topic/152201-dynamic-frame-row-height-based-on-content/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.