43 users online (1 members and 42 guests)  


  Results 1 to 2 of 2

Related

  1. Inline Frame Help    Forum: HTML Forum
    Replies: 3
  2. Inline frame Question Please    Forum: HTML Forum
    Replies: 11
  3. Stop Inline Frame    Forum: Website Scripts Forum
    Replies: 1
  4. Inline Frame Scrollbar Manipulation    Forum: Website Scripts Forum
    Replies: 1
  5. Drop down menu inline frame    Forum: HTML Forum
    Replies: 3
  1. #1
    vndgraphics's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2004
    Posts
    1

    AutoExpanding Inline Frame

    Hi,
    I have header table and a footer table on my web page. Between the header and footer tables I have a 2 celled table, the left cell is for navigation, the right cell contains an Inline Frame. The parameters for the Inline Frame are 750px width and 950px height.

    When my webpage loads the content of the Inline frame is around 800px height...so I have no problem...
    or scrollbars. When I click on a link, the next pages content exceedes 950px...and now the scrollbars appear. I don't want scrollbars.

    Is there a way to get the parameters of my Inline Frame to automaticly adjust to it's content without the use of scrollbars?

    Thanks Scott

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi, welcome to the forum.

    I tried finding a way to do this with code in the iframe src document, but failed horribly.

    What you could try is to first add

    Code:
    id="badger"
    to the iframe tag.

    Then add
    Code:
    onClick="document.getElementById('badger').style.width='1000';"
    To EVERY link that opens in the iframe, changing the width to match the document.
    Its a kludge, but works for me here in IE6 and FireFox
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread