473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to concatening/pasting multiple web pages into one browser window with FRAMESET ???

I would like to load multiple web pages from Internet into ONE single browser
window - one below the other. How do I do that most easily ?

One idea is to built a frameset (for e.g 6 web pages) like:

<FRAMESET ROWS="*,*,*,*,*,100%" BORDER=0 FRAMEBORDER=0>
<FRAME SRC="http://www.firstdomain.com/index.html" NAME="first" MARGINWIDTH=1 SCROLLING=NO TITLE=1>
<FRAME SRC="http://www.secdomain.com/welcome.html" NAME="second" MARGINWIDTH=1 SCROLLING=NO TITLE=2>
<FRAME SRC="http://www.thirddomain.com" NAME="third" MARGINWIDTH=1 SCROLLING=NO TITLE=3>
<FRAME SRC="http://www.fourthdomain.com/intro.html" NAME="fourth" MARGINWIDTH=1 SCROLLING=NO TITLE=4>
<FRAME SRC="http://www.fifthdomain.com" NAME="fifth" MARGINWIDTH=1 SCROLLING=NO TITLE=5>
.....

The problem is that "*" in the frameset definition as a placeholder for
"use as much place as you need" does not work. How can I cope with that problem ?

Wladi

Jul 20 '05 #1
6 3998
rf

"Wladimir Borsov" <wl*******@gmx.net> wrote in message
news:bi*************@news.t-online.com...
I would like to load multiple web pages from Internet into ONE single browser window - one below the other. How do I do that most easily ?

One idea is to built a frameset (for e.g 6 web pages) like:

<FRAMESET ROWS="*,*,*,*,*,100%" BORDER=0 FRAMEBORDER=0>
<FRAME SRC="http://www.firstdomain.com/index.html" NAME="first" MARGINWIDTH=1 SCROLLING=NO TITLE=1> <FRAME SRC="http://www.secdomain.com/welcome.html" NAME="second" MARGINWIDTH=1 SCROLLING=NO TITLE=2> <FRAME SRC="http://www.thirddomain.com" NAME="third" MARGINWIDTH=1 SCROLLING=NO TITLE=3> <FRAME SRC="http://www.fourthdomain.com/intro.html" NAME="fourth" MARGINWIDTH=1 SCROLLING=NO TITLE=4> <FRAME SRC="http://www.fifthdomain.com" NAME="fifth" MARGINWIDTH=1 SCROLLING=NO TITLE=5> ....

The problem is that "*" in the frameset definition as a placeholder for
"use as much place as you need" does not work.
No it does not mean that. It means use the rest of the canvas.

<frameset rows="10,10,*"...> means two frames at 10 pixels and a third that
uses the rest of the canvas.

<frameset rows="*,*,*"...> probably means one frame that uses the rest of
the canvas and then two that are 0 pixels high.
How can I cope with that problem ?


You can't. A frameset occupies the browsers canvas, no more.

BTW do you own all of those sites?

Cheers
Richard.
Jul 20 '05 #2
wl*******@gmx.net (Wladimir Borsov) wrote:
I would like to load multiple web pages from Internet into ONE single browser
window - one below the other. How do I do that most easily ?
Get a server side script to fetch the 6 pages and combine them into a
singlepage.
One idea is to built a frameset (for e.g 6 web pages) like:
A bad idea. Apart from all the normal problems, frames by design
create multiple windows, but you seem to want one continuous windows.
Ergo you do not want frames at all.
<FRAMESET ROWS="*,*,*,*,*,100%" BORDER=0 FRAMEBORDER=0>
<FRAME SRC="http://www.firstdomain.com/index.html" NAME="first" MARGINWIDTH=1 SCROLLING=NO TITLE=1>
<FRAME SRC="http://www.secdomain.com/welcome.html" NAME="second" MARGINWIDTH=1 SCROLLING=NO TITLE=2>
<FRAME SRC="http://www.thirddomain.com" NAME="third" MARGINWIDTH=1 SCROLLING=NO TITLE=3>
<FRAME SRC="http://www.fourthdomain.com/intro.html" NAME="fourth" MARGINWIDTH=1 SCROLLING=NO TITLE=4>
<FRAME SRC="http://www.fifthdomain.com" NAME="fifth" MARGINWIDTH=1 SCROLLING=NO TITLE=5>
....

The problem is that "*" in the frameset definition as a placeholder for
"use as much place as you need" does not work.


It's not meant to work. * means 'use all the available space'. In this
case the available space is zero as the 100% leaves nothing left over.

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 #3
the "*" does not mean 'as much as you need'!
it means: 'how much can you TAKE?'

in you frameset you have defined the last row a height of 100% of the
screen. therefore leaving NO space for the other frames. try ths frameset:

<FRAMESET ROWS="16%,16%,16%,16%,16%,*" BORDER=0 FRAMEBORDER=0>

this will evenly devide the frames and showing all 6 sites. the 16% by this
formula:

a = 100 / b

where b is the number of frames.

regards,
wouter

"Wladimir Borsov" <wl*******@gmx.net> schreef in bericht
news:bi*************@news.t-online.com...
I would like to load multiple web pages from Internet into ONE single browser window - one below the other. How do I do that most easily ?

One idea is to built a frameset (for e.g 6 web pages) like:

<FRAMESET ROWS="*,*,*,*,*,100%" BORDER=0 FRAMEBORDER=0>
<FRAME SRC="http://www.firstdomain.com/index.html" NAME="first" MARGINWIDTH=1 SCROLLING=NO TITLE=1> <FRAME SRC="http://www.secdomain.com/welcome.html" NAME="second" MARGINWIDTH=1 SCROLLING=NO TITLE=2> <FRAME SRC="http://www.thirddomain.com" NAME="third" MARGINWIDTH=1 SCROLLING=NO TITLE=3> <FRAME SRC="http://www.fourthdomain.com/intro.html" NAME="fourth" MARGINWIDTH=1 SCROLLING=NO TITLE=4> <FRAME SRC="http://www.fifthdomain.com" NAME="fifth" MARGINWIDTH=1 SCROLLING=NO TITLE=5> ....

The problem is that "*" in the frameset definition as a placeholder for
"use as much place as you need" does not work. How can I cope with that problem ?
Wladi

Jul 20 '05 #4
Wladimir Borsov wrote:
I would like to load multiple web pages from Internet into ONE single browser
window - one below the other. How do I do that most easily ?

One idea is to built a frameset (for e.g 6 web pages) like:

<FRAMESET ROWS="*,*,*,*,*,100%" BORDER=0 FRAMEBORDER=0>
<FRAME SRC="http://www.firstdomain.com/index.html" NAME="first" MARGINWIDTH=1 SCROLLING=NO TITLE=1>
<FRAME SRC="http://www.secdomain.com/welcome.html" NAME="second" MARGINWIDTH=1 SCROLLING=NO TITLE=2>
<FRAME SRC="http://www.thirddomain.com" NAME="third" MARGINWIDTH=1 SCROLLING=NO TITLE=3>
<FRAME SRC="http://www.fourthdomain.com/intro.html" NAME="fourth" MARGINWIDTH=1 SCROLLING=NO TITLE=4>
<FRAME SRC="http://www.fifthdomain.com" NAME="fifth" MARGINWIDTH=1 SCROLLING=NO TITLE=5>
....

The problem is that "*" in the frameset definition as a placeholder for
"use as much place as you need" does not work. How can I cope with that problem ?

Wladi


First of all, it's not really a JavaScript question. Secondly, "*" doesn't mean "use as much place as you
need", it means "use whatever is left over". You should only use "*" once, all other frames should have
an assigned value:

<FRAMESET ROWS="16%,16%,16%,16%,16%,16%" BORDER=0 FRAMEBORDER=0>

If you are doing this dynamically, presumably at some point you know how many frames you'll be loading so
you could do something like:

<script type="text/javascript">

var numberOfFrames = 6;

var eachFramePercent = Math.floor(100 / numberOfFrames);

var frameTag = '<FRAMESET ROWS="';

var rowsAttrib = new Array();
for (var i = 0; i < numberOfFrames; i++) {
rowsAttrib.push(eachFramePercent + '%');
}

frameTag += rowsAttrib.join(',');
frameTag += '" BORDER="0" FRAMEBORDER="0">';
// build rest of frameTag here with each <FRAME>
frameTag += '</FRAMESET>';

document.write(frameTag);

</script>
--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
* http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
* http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #5
Grant Wagner <gw*****@agricoreunited.com> wrote:
Script question. Secondly, "*" doesn't mean "use as much place as you
need", it means "use whatever is left over". You should only use "*"
once, all other frames should have an assigned value:
No, "*" means use one portion of whatever is left over. Likewise, "2*"
means use two portions of whatever is left over. It is perfectly legitimate
to use more than one "*" in a COLS or ROWS attribute, for example:

<frameset rows="*,*,*,*,*,*">

would divide the available space into 6 equally spaced rows.
<script type="text/javascript">
[snip]
</script>


This example would produce a blank page with no FRAMESET element for those
of us with JavaScript disabled/unsupported.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"The only things we keep permanent are those we give away" - Waite Phillips
Jul 20 '05 #6
If you have ROWS="*,*,*,*,*,100%" then the 100% frame will get all the
space, why not try
ROWS="*,*,*,*,*,*"
"Wladimir Borsov" <wl*******@gmx.net> wrote in message
news:bi*************@news.t-online.com...
I would like to load multiple web pages from Internet into ONE single browser window - one below the other. How do I do that most easily ?

One idea is to built a frameset (for e.g 6 web pages) like:

<FRAMESET ROWS="*,*,*,*,*,100%" BORDER=0 FRAMEBORDER=0>
<FRAME SRC="http://www.firstdomain.com/index.html" NAME="first" MARGINWIDTH=1 SCROLLING=NO TITLE=1> <FRAME SRC="http://www.secdomain.com/welcome.html" NAME="second" MARGINWIDTH=1 SCROLLING=NO TITLE=2> <FRAME SRC="http://www.thirddomain.com" NAME="third" MARGINWIDTH=1 SCROLLING=NO TITLE=3> <FRAME SRC="http://www.fourthdomain.com/intro.html" NAME="fourth" MARGINWIDTH=1 SCROLLING=NO TITLE=4> <FRAME SRC="http://www.fifthdomain.com" NAME="fifth" MARGINWIDTH=1 SCROLLING=NO TITLE=5> ....

The problem is that "*" in the frameset definition as a placeholder for
"use as much place as you need" does not work. How can I cope with that problem ?
Wladi

Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Edward King | last post by:
Hi! I am trying to achieve the following: I have a number of help pages (in the format help_nn.php where nn=helpid). I want to be able to open a particular help page by calling the function...
10
by: Simon Wigzell | last post by:
Is there any way to create and open a window in javascript so that links in other websites won't "steal" it? I've written a web page with a form for people to enter headlines and URLs from...
33
by: randau | last post by:
Linking to a Targeted Browser Window I'd like to open reference links to other web sites in a separate browser window from the browser window hosting my own web site pages. The Link Target...
5
by: Martin | last post by:
I have some pages I'm serving out that are about twice the size of the browser window (IE only; intranet only). The user must use the horizontal and vertical scroll bars to move the page around. ...
10
by: santiago538 | last post by:
Hi, Is there any way to specify which monitor a Window.open() will launch a new browser window in on systems with more than one display. It would only need to work with Mozilla browsers, and not...
2
by: David | last post by:
Hello, When the user starts my .aspx page and then opens a new browser window (i.e. through menu or Ctrl + N hotkey) I don't want both pages to share the same Session (HttpApplication.Session)....
1
by: Sam | last post by:
I have 2 jsp pages which are loaded from the same browser window. Inside these jsp pages, I have created 2 windows to write client side log. I have used different id for 2 windows as follow. In...
1
by: dnes | last post by:
Open Multiple New Browser Windows from ASP.NET I'm having trouble figuring out how to open multiple new browser windows (each one displaying something different). As you can see from the code...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.