How to add content

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

    How to add content

    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.locati on.href = "http://www.eaglewoodho spital.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.locati on.href

    Thanks in advance.
    CW
  • Lasse Reichstein Nielsen

    #2
    Re: How to add content

    pow67 <pow67@optonlin e.net> writes:
    [color=blue]
    > 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.locati on.href = "http://www.eaglewoodho spital.com/reportpage1"[/color]

    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." .
    [color=blue]
    > Can someone tell me how I can add "...//reportpage2" and
    > "...//reportpage3" to make one continuous Web page displaying all three
    > report pages?[/color]

    Not by changing the href. That just makes the next page load in place
    of the first.
    [color=blue]
    > Am I using the correct javascript command with: document.locati on.href[/color]

    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
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • pow67

      #3
      Re: How to add content

      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

      Comment

      Working...