Forum Moderators: open

Message Too Old, No Replies

Include a page within another

Using FP2000

         

vicsvw

1:44 am on Jul 23, 2005 (gmt 0)

10+ Year Member



Is it possible to bring up a web page in another page. I wish to show one page within the border of my 1st page. Not sure I am asking this correctly. Vic

encyclo

1:55 am on Jul 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums, vicsvw.

There are several ways of doing what you want - the best way depends on exactly what you are trying to achieve.

The simplest way is to use an inline frame or iframe. The HTML looks like this:

<iframe src="name-of-page.html" width="150" height="140" frameborder="0" scrolling="no"></iframe>

However if you are wanting to include something like a menu on each page of your site, you should look at using a server-side include (SSI), which is a special comment recognised by the server and used to insert a markup snippet held in a separate file:

<!--#include virtual="name-of-page.html" -->

Your server needs to support this, though. Most do, but sometimes only on files with a .shtml extension.

What are you trying to do with your included file?