Posted on Leave a comment

Frustrating to Tears

Apparently <iframe><iframe></iframe></iframe> doesn’t work particularly when the iframes are named the same. Basically the source of the iframe was dynamically including itself.. Come on Homer! Say "Doh!"

I am trying to implement an IFRAME but with some content the iframe is showing the scrollbar full as if there is no content below the fold. The iframe is defined as:

<iframe src="<?php echo $contentfile; ?>"
    name="viewportname"
    width="<?php echo $_SESSION['userwidth']-2; ?>"
    height="<?php echo $_SESSION['userheight']-201; /* 131 */ ?>"
    align="top"
    marginwidth="0"
    marginheight="0"
    scrolling="auto">
    <h2>Content requires iframe compatible browser</h2>
</iframe>

For presentation purposes it sits in this structure:

<html>
...
   <body>
      <div>
      </div>
      <div>
         ...iframe here...
      </div>
      <div>
      </div>
   </body>
</html>

Anyone see anything glaringly wrong?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.