By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,928 Members | 1,752 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,928 IT Pros & Developers. It's quick & easy.

#include usage?

P: n/a
Why would this not work for me:

<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td>
<!-- ----------Begin Top Navigation Include File---------- -->
<!--#include file="topnav.html"-->
<!-- ----------End Top Navigation Include File---------- -->
</td>
</tr>
</table>
Contents of topnav.html:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="6"><img src="images/tophead.gif" width="700"
height="163" border="0" usemap="#Imagemap1">
<map name="Imagemap1">
<area shape="rect" coords="580,15,696,82"
href="http://linkedsite.com">
<area shape="rect" coords="271,69,452,83" href="index.html"
alt="Home" title="Home">
<area shape="poly"
coords="238,65,122,6,103,21,77,106,70,142,154,138, 187,136" href="index.html"
alt="Home" title="Home">
</map>
</td>
</tr>
</table>
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Mr. Clean <mr*****@protctorandgamble.com> wrote:
Why would this not work for me:

<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td>
Now this is a really pointless table isn't it?
<!-- ----------Begin Top Navigation Include File---------- -->
Do you realise that the words Begin Top Navigation Include File are
not actually commented out?
You open and close three sets of comments before those words and
another three sets after them. Never try to include multiple strings
of - inside comments.
<!--#include file="topnav.html"-->


Are SSI enabled on your server?
Do you have to call your file .shtml for your server to parse SSI?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2

P: n/a
In article <2v********************************@4ax.com>, st***@pugh.net says...
Mr. Clean <mr*****@protctorandgamble.com> wrote:
Why would this not work for me:

<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td>


Now this is a really pointless table isn't it?
<!-- ----------Begin Top Navigation Include File---------- -->


Do you realise that the words Begin Top Navigation Include File are
not actually commented out?
You open and close three sets of comments before those words and
another three sets after them. Never try to include multiple strings
of - inside comments.
<!--#include file="topnav.html"-->


Are SSI enabled on your server?
Do you have to call your file .shtml for your server to parse SSI?

Steve

I forgot about the '--' thing in HTML Comments...DUH!!!

Don't know about the SSI stuff. Would that be required
to get this to work?
Jul 20 '05 #3

P: n/a
Mr. Clean <mr*****@protctorandgamble.com> wrote:
In article <2v********************************@4ax.com>, st***@pugh.net says...
Mr. Clean <mr*****@protctorandgamble.com> wrote:
>Why would this not work for me:
>
> <!--#include file="topnav.html"-->


Are SSI enabled on your server?
Do you have to call your file .shtml for your server to parse SSI?

Don't know about the SSI stuff. Would that be required
to get this to work?


Yes. <!--#include file="..." --> is a Server Side Include. If SSI
isn't enabled on your server than it won't work.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.