By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,905 Members | 894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,905 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
do****@lycos.co.uk (Don Schneider) wrote:
I tried to setup a frameset which consists of 4 different subframes.
Uh huh.
Each of these subframes should fetch a different web page from the internet and display it completely (!).
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?
BUT: the vertical size should be undefined.
rows="*,*,*,*" but that's really the same as rows="25%,25%,25%,25%"
Depending on the retrieved (lets say 2nd) webpage the frame should take as much space
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.
as it needs to display the whole sub web page without vertical scrollbar.
scrolling="no" in your frame tag will do that. Won't help much if you
_need_ to scroll.
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).


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 <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2

P: n/a

"Don Schneider" <do****@lycos.co.uk> wrote in message
news:bd*************@news.t-online.com...
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.


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.


Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.