Paul wrote:
HI! thanks for the response. I am using it this form because I want to be
able to change the content. I want to be able to replace the include file
from a menu. Is there another way to do this without going this without
using the javascript in the way that I am using it?
the change of content with SSI can only be made by loading on server
You can use in SSI server request about url of document
then
get dynamicaly by SSI what it is expected
The JS will run after SSI instructions did
(and here : no need of JS)
here is a plan with SSI only
supposing sent url is this form :
'page.shtml?docType=4T'
or
'page.shtml?docType=41T'
file 'page.shtml' :
<!--#set var="Gotn" value="$QUERY_STRING" -->
<!--#if expr="$Gotn = /. 4T ./" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
<!--#elif expr="$Gotn = /. 4F ./" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
"http://www.w3.org/TR/1998/REC-html40-19980424/frameset.dtd">
<!--#elif expr="$Gotn = /. 4S ./" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/1998/REC-html40-19980424/strict.dtd">
<!--#elif expr="$Gotn = /. 41T ./" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<!--#endif -->
<html>
<head>
....
</html>
SSI instruction :
<!--#if expr="$Gotn = /. 4T ./" -->
verify if '4T' exists inside value of ssi variable : $Gotn
that's : is string '4T' in url of called page ?
if yes, following html code is writen on page
if not, is ? :
<!--#elif expr=" ... blah ...
You can use this procedure to create on loading your menus
--
Stephane Moriaux et son [moins] vieux Mac