Forum Moderators: open

Message Too Old, No Replies

Multiple HTML pages into a seamless document

         

snowdzine

10:56 pm on Oct 5, 2006 (gmt 0)

10+ Year Member



I am currently trying to figure out a solution to creating a single entirely scrollable HTML page that is comprised of two different sources.

The top part of the page would be a standard navigation that will change and therefore would like to keep it as a single component instead of changing the content everywhere.

The second part would be the content. Unfortunately, trying methods that involve <iframe> produce strange results cross browser and also sometimes include a vertical scrollbar just for the iframe.

I am looking to create something that looks as if it is one page with a navigation header. I.e. if I scroll down the page, the menu dissappears. Any thoughts?

tedster

1:45 am on Oct 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This sounds like a job for an include file -- Server Side Include (SSI), or php or whatever you have at hand to use.

snowdzine

6:19 am on Oct 6, 2006 (gmt 0)

10+ Year Member



Thanks. I know that our technology prohibits use of PHP, but I will certainly investigate the SSI method. Is there any other way you could think that this might work?

daveVk

7:54 am on Oct 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try SSI solutions first, this have the advantage that the inclusion is visible to search engines, and does not depend on advanced browser features. Alternatively your IFrame solution can be extended with a little javascript, make iframe non displayed and move content from iframe to main page when iframe loads.