Forum Moderators: open

Message Too Old, No Replies

Including HTML files within tables

         

VinTurk

9:38 pm on Mar 23, 2005 (gmt 0)

10+ Year Member



Im having some trouble including a sub navigation bar within a table.

I've tried placing the following SSI commands in the cell that I want the nav bar to be displayed in, to no avail:

<!--#include virtual="/filename.htm"--> as well as

<!--#include file="ITWCAincludeTest.htm"-->

the included file is not showing up in IE or firefox.

both files are in the same directory. im running IIS.

all help is appreciated

cmatcme

6:14 pm on Mar 24, 2005 (gmt 0)

10+ Year Member



Hi VinTurk,

One big thing you shouldn't do is put the files include the script block tag:

No:

<%
<!-- #include file="file.htm" -->
%>

Yes:

%>
<!-- #include file="file.htm" -->
<%

If that's not it telling me what's round the include code would be helpful

//cmatcme\\

VinTurk

6:50 pm on Mar 24, 2005 (gmt 0)

10+ Year Member



figured out the problem....i was viewing this locally and didnt check it on the server...thanks anyway

anallawalla

1:59 am on Apr 3, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I have a similar problem and I use subdomains.

My AdSense code is in an included file. If I view the page (on the server) as:

http#www.domain.com/folder/file.html

the AS code displays fine. But if I view it as (my preference):

http#folder.domain.com/file.html

then I get an error that the directive could not be processed.

The displayed pages call the AS code with a path such as:

/folder/lib/asfile.htm

I tried using the absolute path from the webhost root, e.g.

/home2/customername/public_html/folder/lib/asfile.htm

but I still get the error.

My fallback is to use the http#www.domain.com/folder/file.html option but I'd appreciate help with the other way.