Click to See Complete Forum and Search --> : unable to make menu display in header.inc file


cutie
09-22-2004, 09:19 AM
Hi,

I want to make my menu show on every page headers in my site. Somehow, header.inc doesn't show the menu, but if I rename header.inc to header.html then the menu shows. The code stays the same. Anyone know why it does this? Thanks a lot in advance for any help.

Han,

This is my code:
<head>
<title><% = strPageHead %></title>
<IMG SRC="http://dmcsql2/intranet/images/header.jpg", height = 30, width = 625>
</head>

<body>

<!-- ******** BEGIN ALLWEBMENUS CODE FOR Menu ******** -->
<img name='awmMenuPathImg-Menu' id='awmMenuPathImg-Menu' src='../Menu/awmmenupath.gif' alt=''>
<script type='text/javascript'>var MenuLinkedBy='AllWebMenus [2]', awmBN='502'; awmAltUrl='';</script>
<script src='../Menu/Menu.js' language='JavaScript1.2' type='text/javascript'></script>
<script type='text/javascript'>awmBuildMenu();</script>
<!-- ******** END ALLWEBMENUS CODE FOR Menu ******** -->

</body>

Jona
09-22-2004, 09:28 AM
Hmm. Does it work with a .txt extension? The server may be translating .inc as .txt, which has a content type of text/plain, whereas HTML has a content type of text/html even though they are both ASCII text.

AdamGundry
09-22-2004, 11:27 AM
How are you actually including the header? Using SSI, an Apache directive or something else?

Adam