QUOTE(everydaysushi @ Apr 22 2005, 10:12 PM)

I have this same exact problem, and apparently it's a tough one to solve. From what I've discussed with friends (because we looove discussing scripting in our free time), there're two elements to this.
1. Javascript is client-side, meaning it depends on the user's interaction with your website for anything to be activated. This is why rollover menus can be done through javascript, because there's a lot if-then action.
2. SSI by definition is server-side, meaning it loads everything up previous to any user input. It's useful to use SSI when you're doing headers, footers, or other things that are consistent on many pages. It sounds like SSI is to script/coding much like the CSS of the style/designing of a page. EXCEPT that SSI is a little more complicated because it depends on what kind of hosting provider you have (Microsoft IIS 5.0? 6.0? Apache?) Yeah, I don't really know what that means in technical terms, but I know that SSI doesn't like to work unless it's in the right environment and all the rules are applied correctly.
Another thing... make sure that when you have a regular .html file and you start thinking of using SSI in it (in other words, you decide to reference outside .html files--which are sometimes tagged .inc instead of .html, to avoid confusion), you change the initial file to .shtml. This is a sign to the computer to look for the referenced .html/.inc files before it finishes loading.
Hope this helps your problem... it wasn't enough to help mine, but it's a start!
I think the best way to make SSI pages, is with *.asp pages, and this requires the server to support ASP (Active Server Pages).. I have only include commands in my html (.asp) -files..
The file "
p001.asp" contains:
CODE
<!--#include virtual="/hidden-inc/head.inc" -->
<!--#include virtual="/hidden-inc/table.inc" -->
<!--#include virtual="/hidden-inc/logo.inc" -->
<!--#include virtual="/hidden-inc/menu.inc" -->
<!--#include virtual="/hidden-inc/p001.inc" -->
<!--#include virtual="/hidden-inc/table-end.inc" -->
Works like a charm!

Please do not copy codes from my pages without notifying me first..
Edit: Oops! Topic is 3 years old.. I C!
Reply