How to include multiple frames in frameset without predefined dimensions/vertical scrollbar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Don Schneider

    #1

    How to include multiple frames in frameset without predefined dimensions/vertical scrollbar

    I tried to setup a frameset which consists of 4 different subframes.
    Each of these subframes should fetch a different web page from the internet and display it completely (!).
    BUT: the vertical size should be undefined. Depending on the retrieved (lets say 2nd) webpage the frame should take as much space
    as it needs to display the whole sub web page without vertical scrollbar.

    If I implement it like below a vertical scrollbar for each of the 4 subframes is included.
    How do I get rid of these scrollbars and display the 4 full pages completely (Ok. One full scrollbar
    for the concatenated main web pages is necessary (but for the whole page not the subpages).

    <FRAMESET rows="500,500,5 00,*" BORDER=0 FRAMEBORDER=0>
    <FRAME SRC="http://www.blah.com/firstpage.html" NAME="firstfram e" MARGINWIDTH=1 SCROLLING=NO TITLE=MENU>
    <FRAME SRC="http://www.blubb.com/firstpage.html" NAME="secondfra me" MARGINWIDTH=1 SCROLLING=NO TITLE=MENU>
    <FRAME SRC="http://www.karl.com/firstpage.html" NAME="thirdfram e" MARGINWIDTH=1 SCROLLING=NO TITLE=MENU>
    <FRAME SRC="http://www.paul.com/firstpage.html" NAME="fouthfram e" MARGINWIDTH=1 SCROLLING=NO TITLE=MENU>
    <NOFRAMES>

    Regards
    Donny

  • Steve Pugh

    #2
    Re: How to include multiple frames in frameset without predefined dimensions/vertical scrollbar

    donnyC@lycos.co .uk (Don Schneider) wrote:
    [color=blue]
    >I tried to setup a frameset which consists of 4 different subframes.[/color]

    Uh huh.
    [color=blue]
    >Each of these subframes should fetch a different web page from the internet and display it completely (!).[/color]

    Okay that's what frames do, but I think you mean something different
    by 'completely' don't you? You mean display it in its entirety on a
    screen, which must be magic because the page you fetch could be ten
    times longer than your screen....

    What would you like to happen if one of these pages was longer than
    your browser window? Where would the other three frames go?
    [color=blue]
    >BUT: the vertical size should be undefined.[/color]

    rows="*,*,*,*" but that's really the same as rows="25%,25%,2 5%,25%"
    [color=blue]
    > Depending on the retrieved (lets say 2nd) webpage the frame should take as much space[/color]

    Nope. Frames don't work like that. The frameset is laid out, then the
    frames are populated.

    You could investigate some JavaScript that calculates the height of
    the fetched page and adjusts the frame size accordingly.
    [color=blue]
    >as it needs to display the whole sub web page without vertical scrollbar.[/color]

    scrolling="no" in your frame tag will do that. Won't help much if you
    _need_ to scroll.
    [color=blue]
    >If I implement it like below a vertical scrollbar for each of the 4 subframes is included.
    >How do I get rid of these scrollbars and display the 4 full pages completely (Ok. One full scrollbar
    >for the concatenated main web pages is necessary (but for the whole page not the subpages).[/color]

    Ah, you don't really want frames at all. You want some magic that will
    take four web pages and combine them into one. Sorry, <magic> is
    scheduled for XHTML 5.

    You could look at a server side solution that fetches the four pages
    and combines them into a single page. That single page can then be
    displayed in an ordinary window (no frames). But this isn't an option
    if you want to be able follow links, etc. within a single frame whilst
    keeping the other three the same.

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

    Comment

    • spaghetti

      #3
      Re: How to include multiple frames in frameset without predefined dimensions/vertical scrollbar


      "Don Schneider" <donnyC@lycos.c o.uk> wrote in message
      news:bdho2q$rvu $01$1@news.t-online.com...[color=blue]
      > I tried to setup a frameset which consists of 4 different subframes.
      > Each of these subframes should fetch a different web page from the[/color]
      internet and display it completely (!).[color=blue]
      > BUT: the vertical size should be undefined. Depending on the retrieved[/color]
      (lets say 2nd) webpage the frame should take as much space[color=blue]
      > as it needs to display the whole sub web page without vertical scrollbar.[/color]

      You're trying to display four pages right after the other? This cannot be
      done with frames at all. You can do it with includes, but that can really
      fook up linkage and styles etc...

      If you are familiar with coding on the web platform of your choice, I'd say
      you can setup a script to include the other pages, change all URIs to point
      to the appropriate locations, and strip out header stuff. But then you're
      *really* going to fook up styling.

      The better solution? Don't do this at all. If they are four completely
      different pages, you should give proper links to the pages and let visitors
      see them as they desire.




      Comment

      Working...