Connecting Tech Pros Worldwide Help | Site Map

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

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 03:06 PM
Don Schneider
Guest
 
Posts: n/a
Default 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,500,*" BORDER=0 FRAMEBORDER=0>
<FRAME SRC="http://www.blah.com/firstpage.html" NAME="firstframe" MARGINWIDTH=1 SCROLLING=NO TITLE=MENU>
<FRAME SRC="http://www.blubb.com/firstpage.html" NAME="secondframe" MARGINWIDTH=1 SCROLLING=NO TITLE=MENU>
<FRAME SRC="http://www.karl.com/firstpage.html" NAME="thirdframe" MARGINWIDTH=1 SCROLLING=NO TITLE=MENU>
<FRAME SRC="http://www.paul.com/firstpage.html" NAME="fouthframe" MARGINWIDTH=1 SCROLLING=NO TITLE=MENU>
<NOFRAMES>

Regards
Donny


  #2  
Old July 20th, 2005, 03:06 PM
Steve Pugh
Guest
 
Posts: n/a
Default 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%,25%,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/>
  #3  
Old July 20th, 2005, 03:07 PM
spaghetti
Guest
 
Posts: n/a
Default Re: How to include multiple frames in frameset without predefined dimensions/vertical scrollbar


"Don Schneider" <donnyC@lycos.co.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.




 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.