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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.