473,385 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Includes files in HTML

Hi,

I am having problems having an include file rendered in my browser
(IE6).

The include file contains <A href> tags to be used as a navigation bar
in the footer of a .html file.

I am using dreamweaver and the included html appears as expected in
the 'Design View' but does not get rendered in the browser.

The code I am using looks like this:

<TD>
<!--#include file="includes/navbar.html" -->
</TD>
Jul 20 '05 #1
9 2570
Sometime around 20 Nov 2003 18:28:41 -0800, Adam is reported to have
stated:
Hi,

I am having problems having an include file rendered in my browser
<snip>
<TD>
<!--#include file="includes/navbar.html" -->
</TD>


Does your host support SSI? Even if they do, the file may need to be
renamed to navbar.shtml, depending on the server configuration.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #2
ar********@hotmail.com (Adam) wrote in message news:<a8**************************@posting.google. com>...
I am having problems having an include file rendered in my browser
(IE6).
I am using dreamweaver and the included html appears as expected in
the 'Design View' but does not get rendered in the browser.


Are you viewing this page locally? Because it's the server, not the
browser, that does the include. (I presume Dreamweaver processes the
SSI in order to give a proper preview.)

--- Stephen Morley ---
http://www.safalra.com
Jul 20 '05 #3
Mark Parnell wrote:
Sometime around 20 Nov 2003 18:28:41 -0800, Adam is reported to have
stated:
Hi,

I am having problems having an include file rendered in my browser

<snip>

<TD>
<!--#include file="includes/navbar.html" -->
</TD>


Does your host support SSI? Even if they do, the file may need to be
renamed to navbar.shtml, depending on the server configuration.


Are you sure? It's been a long time since, but ISTR that it's the parent
that had to have the .shtml extension - in some environments etc ...

--
William Tasso - http://WilliamTasso.com
Jul 20 '05 #4
Sometime around Sun, 23 Nov 2003 23:59:49 -0000, William Tasso is reported
to have stated:

Are you sure? It's been a long time since, but ISTR that it's the parent
that had to have the .shtml extension - in some environments etc ...


I thought I was. :-) But you could be right. It's never been an issue for
me, so I've never needed to know.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #5
Mark Parnell wrote:
Sun, 23 Nov 2003 23:59:49 -0000, William Tasso is reported to have
stated:
ISTR that it's the parent that had to have the .shtml extension -
in some environments etc ...


I thought I was. :-) But you could be right. It's never been an
issue for me, so I've never needed to know.


The document that contains the ssi directive is the one that matters.
It is usually the case that the document with the ssi directives must
have a special extension, often .shtml instead of .html, but one could
set up a server to look for and process ssi in documents with any
extension, including .html.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #6
Just a follow-up question. It's been years since I used HTML, but
it's never too late to get back into the game. Excuse my ignorance on
the following. I was thinking of using the #include command also to
eliminate redundant code (ex; navigation bar etc. on multiple pages)
on a site I am developing and the whole.....making sure the server
option is on is a bit confusing. What if I am using my PC as the
server? Can I test includes on my PC... Why won;t my includes
work....Do I need to use the secret password abracadabra??? I'm lost
on the background here and some fundamentals. Care to elaborate a
bit?

Thanks in advance for your clarification.

Mark.
Jul 20 '05 #7
ms*******@comcast.net (Mark) wrote in
news:68**************************@posting.google.c om:
Just a follow-up question. It's been years since I used HTML, but
it's never too late to get back into the game. Excuse my ignorance on
the following. I was thinking of using the #include command also to
eliminate redundant code (ex; navigation bar etc. on multiple pages)
on a site I am developing and the whole.....making sure the server
option is on is a bit confusing. What if I am using my PC as the
server? Can I test includes on my PC... Why won;t my includes
work....Do I need to use the secret password abracadabra??? I'm lost
on the background here and some fundamentals. Care to elaborate a
bit?


In order to use server-side includes on your local PC, you'll have to
install and use some server software that interprets includes. I'd suggest
Apache (you can set it up so it doesn't accept requests from anything non-
local). You can find versions for most any OS.

Jul 20 '05 #8
Sometime around 25 Nov 2003 21:23:03 -0800, Mark is reported to have
stated:
Can I test includes on my PC... Why won;t my includes
work....
You need to have a server (e.g. Apache, IIS) running on your computer.
Do I need to use the secret password abracadabra???


Yes, but that's not the password. ;-)

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 20 '05 #9
us****@safalra.com (Safalra) wrote in message news:<c5**************************@posting.google. com>...
ar********@hotmail.com (Adam) wrote in message news:<a8**************************@posting.google. com>...
I am having problems having an include file rendered in my browser
(IE6).
I am using dreamweaver and the included html appears as expected in
the 'Design View' but does not get rendered in the browser.


Are you viewing this page locally? Because it's the server, not the
browser, that does the include. (I presume Dreamweaver processes the
SSI in order to give a proper preview.)

--- Stephen Morley ---
http://www.safalra.com


Renaming the include file to have a *.shtml extenstion didnt help.
The page containing the include is a .html and running on IIS.
The same include statement works when calling from with a .asp page
but not when calling from a .html page.

Thanks,
Adam
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Tim Tyler | last post by:
A fairly simple question: I have a library A which depends on library B and C. Currently I have: <?php include("A.inc.php"); include("B.inc.php"); include("C.inc.php");
25
by: Martin Walke | last post by:
Hi, This may seem like a client side problem but.... I have web pages that are made up of a number of javascript include files as well as 'in page' script. They all work fine running locally...
4
by: Patrick | last post by:
I have an ASP site with about 50 ASP files, all of which are currently including a common "includes.asp" file near the top of the file, responsible for generating the <HEAD/> section of the HTML ...
8
by: Jim | last post by:
Hi: Do we have some common style for includes when working on a project with lots of c and h files. Wat I mean is do we have a rule in C when a file includes several files and those file in turn...
12
by: tshad | last post by:
I am not sure why I am getting this error: I have the following code I want to run from another include file that holds all my functions. functions.inc...
6
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server...
1
by: Martin Olson | last post by:
is there a way to get the WebDev.WebServer for VS2005 to process server side includes??? thanks for your help on this, mo
7
by: McKirahan | last post by:
Has anyone experienced this (and found a solution)? I have five files: a .htm that invokes four .js include files. Only the first alert in the first include is displayed. This only happens...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
4
by: Ron | last post by:
Hi all, Trying to work out a few problems in using php on my site. Partially this is a html question. I was reading a lot of the posts and it seems that some of the includes people are using are...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.