View Full Version : server-side includes - HELP!!


spdorsey
02-08-2005, 09:37 PM
Hello

I'm using the following tag to link to another text document as a server-side include:

<!--#include file="ssi/nav.htm" -->

Questions:

- Is this the correct syntax to reference?

- Am I correct in assuming that I need to use a ".shtml" extension on the pages using SSI?

- Is there a batter way of doing this?

Because everything works fine in every browser except MSIE 6.0 in Windows. The included content is missing. Does SSI work in MSIE? If so, what am I doing wrong? Here is the site where the code is used:

http://www.deepa.com/stage/index.shtml

thanks for any input,

--------------S

kittycat
02-08-2005, 09:58 PM
The include is working because you can see it in the page source.
There are some errors in your code though, try removing this just after your CSS
</head>

<body>
<div id="container">
<div id="title">

</div>
<div id="nav">
</style>

spdorsey
02-08-2005, 10:06 PM
I removed the suggested code and it messed the layout up a whole lot. I put it back.

The page has a bit of unnecessary code right now because I'm creating containers for future content. That may be why it looks like there is unnecessary code.

The page still does not work in my MSIE 6.0 browser (although I can see the code in the source). Strange.



Thanks,

------------S






The include is working because you can see it in the page source.
There are some errors in your code though, try removing this just after your CSS
</head>

<body>
<div id="container">
<div id="title">

</div>
<div id="nav">
</style>

pb&j
02-09-2005, 05:41 AM
your ssi seems to be working fine.

it looks like your javascript is not working in IE. looks like a bunch of yucky dreamweaver javascript.