Web Analytics Made Easy -
StatCounter dynamic frame row height based on content - CodingForum

Announcement

Collapse
No announcement yet.

dynamic frame row height based on content

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dynamic frame row height based on content

    Trying to get this code to work:

    Code:
    <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.

  • #2
    Might help:
    http://www.dynamicdrive.com/dynamici.../iframessi.htm
    http://www.dynamicdrive.com/dynamici...iframessi2.htm
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

    Comment

    Working...
    X