How to add content

P

pow67

I am assembling a muti-page report into one Web page using portions of
other Web pages. I can get one page to display using:

document.location.href = "http://www.eaglewoodhospital.com/reportpage1"

Can someone tell me how I can add "...//reportpage2" and
"...//reportpage3" to make one continuous Web page displaying all three
report pages?

I tried putting the following between links but it failed:
document.write("<BR>")

Am I using the correct javascript command with: document.location.href

Thanks in advance.
CW
 
L

Lasse Reichstein Nielsen

pow67 said:
I am assembling a muti-page report into one Web page using portions of
other Web pages. I can get one page to display using:

document.location.href = "http://www.eaglewoodhospital.com/reportpage1"

That construction will load the requested page in place of the current
one.
The location variable is a global variable. Some browsers, but not all,
make it available as a property of the document as well. For maximal
compatability, drop "document.".
Can someone tell me how I can add "...//reportpage2" and
"...//reportpage3" to make one continuous Web page displaying all three
report pages?

Not by changing the href. That just makes the next page load in place
of the first.
Am I using the correct javascript command with: document.location.href

No.
If you need to include more than one HTML-document in on page, you
should either use frames or do it on the server. As a last resort,
you can load the pages locally, and then extract the contents of
the bodies and combine these.

/L
 
P

pow67

Thanks for the response. Maybe I am on the wrong track.

I use FrontPage 2000 and put together an Active Server Page but the
output could not be satisfactorily formatted.

I have used frames but that seems cumbersome.

What I do now is put each report page (the report can be 3 to 5 pages
long) on a separate row of a table. I was hoping I might be able to
automate the process using javascript to position the pages and omit
pages which are null.

Suggestions appreciated.
CW
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,771
Messages
2,569,587
Members
45,099
Latest member
AmbrosePri
Top