Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server Side Includes

Status
Not open for further replies.

owls

Instructor
Oct 10, 2002
23
0
0
US
I am trying to set up a menu as a server side include to all the pages within my site. The main index.shtml file recognizes the include but the pages within my subfolders do not recognize the include. I think it has to do with the path to the include going up a folder and then down again, but I'm not sure. Can anyone tell me how to set up the include html path so that all the pages within my site will recognize it. Right now my directory is set up like below

WebDirectory Folder
index.shmtl (this page recognizes the include)
includesfolder
navigation.html (this is the include file)
subfolder1
index.shtml (this file does not recognize include)
subfolder2
index.shtml (this file does not recognize include)
subfolder3....
 
for your subfolders the include should be ../includesfolder/navigation.html

the .. takes you out of your current folder (up a level)

Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top