html question about loading a page in a page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dark Knight
    Confirmed User
    • May 2005
    • 1004

    #1

    html question about loading a page in a page

    Ok this is what i want to do. I have a page and i another page loading in it using ssi but i want when you click a link on the page that is loaded with ssi to load a new page at the same place.

    Who knows how to do this or maybe with java or any other small script.

    Any idea?
  • Kevsh
    Confirmed User
    • Dec 2004
    • 8619

    #2
    I assume you mean the loaded file takes place of the SSI? For example, a header page loaded by SSI than when you click the header changes but the rest of the page remains the same?

    Strictly speaking, not possible as the SSI and page it's included in are parsed and sent to the client as one page - the "include" happens on the server side.

    You'll have to look at a workaround like having the links in an iFrame, perhaps. If it's a navigation bar, for e.g., include the rest of the page but put the nav bar only in the Iframe with no borders, etc. so it appears fluid. Of course this has SEO implications, but that's another story.

    If this is not what you mean, please clarify.

    Comment

    Working...