tags:

views:

53

answers:

4

Can someone guide me how to include html file with an html file. I have been trying to embed my file within object tags but to no avail.

Thanks!

+4  A: 

You can use the iframe tag.
Another option is to used Server Side inclusion using SHTML, this require that the web server support it, see Server Side Includes

radius
+1 Good information here http://www.boutell.com/newfaq/creating/include.html
Shaji
Right! I remeber this one, it exists for years, I used it when I used SSI in late nineties and it has great explanation
radius
the boutell.com link basically says it all.
Evan
+1  A: 

You are quite limited in HTML. You can use iframe tag but it's the same type of embedding as embedding of flash in html pages.

OT: It would be quite easy in PHP. Can you use it? Or do you need static web page?

MartyIX
I am unsure whether server side includes can be used in static html pages at all. I have been trying to do it for quite some time but to no avail. Here's what I have been trying to to my html file which resides within the root of my web. <div> <!--#include virtual="/HtmlObjects/DeliveryEstimator.htm"--></div>Any help would be appreciated. Thanks.
Ashar Syed
I don't know about this possibility. There are dynamic html pages and static html pages. I was asking to know what are your limitations. For example, if you want to create a static html in order to burn them on CD/DVD then it is better in my opinion to write a simple script in powershell/bash to do those includes for you.
MartyIX
A: 

The page structure is layered in a way I cannot use iframes. Any idea on how to achieve it using #inculdes or object tags?

Ashar Syed
A: 

Can you perhaps use Javascript to dynamically load it in?

a.feng