HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Include file not appearing in html document
Post new topic   Reply to topic    HTML Help Forum Index -> SSI
View previous topic :: View next topic  
Author Message
lisab00



Joined: 02 Dec 2008
Posts: 1

PostPosted: Tue Dec 02, 2008 12:52 pm     Include file not appearing in html document Reply with quote

I have a simple navigation bar called navtop.html. When I include it in a new document and save the new doc with an .html extension the nav bar doesn't appear. If I save the new doc with an .asp extension, the nav bar appears fine. Am I missing something if I include it in an .html file? I'm using this simple include code:
<!--#include file="navtop.html" -->
sticks464



Joined: 31 Dec 2006
Posts: 2308

PostPosted: Tue Dec 02, 2008 2:09 pm     Reply with quote

Quote:
<!--#include file="navtop.html" -->


It works with the asp extension but will not work with an html extension. You must use SHTML or ASP.
Code:
SHTML or ASP:
<!--#include file="/path_relative_to_site" -->


You can also use php
Code:
<?php include("../path_relative_to_document") ?>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> SSI All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial