Click to See Complete Forum and Search --> : Anyway to "Include" a HTML file?


Vince Teachout
01-11-2001, 11:47 AM
I'm kind of new at this. I have a section of HTMl Code ( a menu of links)
that I need to include in all pages on a site. Is there anyway to put this code
in a separate HTML file and have it be inserted into all the pages? That way I
only have one piece of code to maintain. Or do I have to cut and paste into
each page, and change each page if updates are needed? Thanks for any help!

Ignore munged e-mail address above.
If necessary to reply via e-mail, please reply to:
caracal A T caracal D O T net

Larry Rebich
01-11-2001, 11:44 PM
This works for me:
<!--webbot bot="Include" U-Include="topten.html" TAG="BODY" -->

If using FrontPage then use:

Insert/Compent/Include Page...

Cheers,
Larry Rebich

More tips link to:
http://www.buygold.net/tips.html

Please:
No personal e-mail questions :-)


"Vince Teachout" <SendJunkMailTo@hotmail.com> wrote in message
news:uoor5toou3ct9r862j545su7ll533ou45s@4ax.com...
> I'm kind of new at this. I have a section of HTMl Code ( a menu of links)
> that I need to include in all pages on a site. Is there anyway to put
this code
> in a separate HTML file and have it be inserted into all the pages? That
way I
> only have one piece of code to maintain. Or do I have to cut and paste
into
> each page, and change each page if updates are needed? Thanks for any
help!
>
> Ignore munged e-mail address above.
> If necessary to reply via e-mail, please reply to:
> caracal A T caracal D O T net

Vince Teachout
01-12-2001, 09:16 AM
On Thu, 11 Jan 2001 20:44:57 -0800, "Larry Rebich" <lrebich@earthlink.net>
wrote:

>This works for me:
><!--webbot bot="Include" U-Include="topten.html" TAG="BODY" -->
>
>If using FrontPage then use:
>
>Insert/Compent/Include Page...

Alas, it didn't work for me. Is there something in plain HTML3.2 that can do
this? (thanks for the tips page, BTW, I bookmarked that)

Ignore munged e-mail address above.
If necessary to reply via e-mail, please reply to:
caracal A T caracal D O T net

Russell Jones
01-24-2001, 01:16 PM
If you're using IIS, change the filename extension of the main file from
"htm" to "stm". After doing that, you can include files using the syntax:
<!-- #include file="somefile.htm" --> or
<!-- #include virtual="/somepath/somefile.htm" -->

Russell Jones
Sr. Web Development Editor
DevX.com

"Vince Teachout" <SendJunkMailTo@hotmail.com> wrote in message
news:3c4u5t83riojm3n2s0oue2defrddfo0u8n@4ax.com...
> On Thu, 11 Jan 2001 20:44:57 -0800, "Larry Rebich" <lrebich@earthlink.net>
> wrote:
>
> >This works for me:
> ><!--webbot bot="Include" U-Include="topten.html" TAG="BODY" -->
> >
> >If using FrontPage then use:
> >
> >Insert/Compent/Include Page...
>
> Alas, it didn't work for me. Is there something in plain HTML3.2 that can
do
> this? (thanks for the tips page, BTW, I bookmarked that)
>
> Ignore munged e-mail address above.
> If necessary to reply via e-mail, please reply to:
> caracal A T caracal D O T net