I'm looking to figure out how to create a basic html page and then from within that page, have another seperate html document displayed within it... any ideas anyone??
Tjobbe
This gives you good control over the size etc of what you want to include.
What onpnt has said <!--#include file="page.htm"--> is SSI, its recommended for things like nav bars etc! But there's more to it than just that. you may need to rename your files to .shtml to get it to work, and it will include everything with is in the included document which (imho) makes it more suitable for page content which may change regularly.
Do not use this: <!--#include file="page.html"-->
The reason is this. If you were in a subfolder of the root and you wished to call a page from a different subfolder then one would assume you would just do this <!--#include file="/subfolder/page.html"-->, however this produces an error. Instead use this <!--#include virtual="/subfolder/page.html"-->, and then you can put the / before the filename if you are specifying the exact location of the file to be included.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.