Results 1 to 3 of 3

Thread: Autoresizing Iframes depending on content?

  1. #1
    Join Date
    Mar 2007
    Posts
    32
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Autoresizing Iframes depending on content?

    Is it possible to make an Iframe that automatically "expands" downwards to
    fit the html page that is put into it?

    Dhen using normal frames they expand down just as normal no-frame pages do,
    but if I replace my old frame structure with iframes it seems to require a fixed
    height of those iframes, which would negate my purpose of changing to iframes.

    Ofcourse, I can adapt and overcome, but it would be easier if the iframe
    expanded downwards itself just like normal frames.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, there are scripts for that but, IMHO they aren't anywhere near as reliable as using regular frames. Also, there isn't much advantage to using iframe instead of frame. Another problem with adjustable iframes is that they are javascript dependant. Here's one such script:

    http://www.dynamicdrive.com/dynamici...iframessi2.htm

    You may wish to use Ajax, there are several scripts on this index:

    http://www.dynamicdrive.com/dynamicindex17/indexb.html

    But, if you can get it to work with regular frames, I think that you are much better off.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2007
    Posts
    32
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Well, I am using regular frames right now, but I want things to appear as if it is
    just a single big page, with a scrollbar for the whole page on the right side,
    which isn't possible with normal frames.

    As far as I know anyway.

    But yeah, looked into some of the dynamic stuff myself, and it doesn't feel very
    comfortable using them, rather think I just find the largest page and make the
    main iframe that size instead.

    Thanks for the reply anyway.
    Last edited by Luterin; 03-30-2007 at 01:51 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •