Closed Thread Icon

Topic awaiting preservation: ARGH! Why are my includes not working? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12301" title="Pages that link to Topic awaiting preservation: ARGH! Why are my includes not working? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: ARGH! Why are my includes not working? <span class="small">(Page 1 of 1)</span>\

 
patric design
Bipolar (III) Inmate

From: 290 km/h, fast lane, Autobahn, Germany
Insane since: Feb 2001

posted posted 07-06-2002 14:39

http://www.patricdesign.com/index.asp

There should be a navigation bar (well 2 buttons) on the top right. The include doesn't work on my local server and it doesnt work on my web server. On another site i designed it works both locally and on any remote server i tried. I've even tried to copy/paste code, change doctype, code lang, file ending (asp, htm, html) changed the include file ending (txt, asp, htm, html) but no luck.

HELP!

<´¯`·.¸ Patric ¸.·´¯`>

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 07-06-2002 14:48

patric design: I suspect the include is working (or you'd get some big nasty error messages all over your page) but I suspect what is going on inside your include isn't working. However, I suspect you will need to copy and paste your code in here (just the bit that includes the file and the contents of the include file) as it is a bit tricky working out what is happening as it just appears to do nothing rather than it breaking and giving us error messages.

You aren't using an include inside and include are you? That can cause problems.

___________________
Emps

FAQs: Emperor

patric design
Bipolar (III) Inmate

From: 290 km/h, fast lane, Autobahn, Germany
Insane since: Feb 2001

posted posted 07-06-2002 15:00

include part in index.asp

code:
<div id="navbar" class="row"> <span class="left"><a href="index.asp"><img src="images/delmehome.gif" alt="click to go back to the main page" name="home" width="65" height="22" border="0" id="home" /></a></span> 
<span class="right">
<!-- #Include file="navi.txt" -->
</span> </div>



and the include itself (navi.txt)

code:
<a href="javascript:;" onMouseOver="MM_swapImage('clients','','images/mnclients_f2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/mnclients.gif" alt="clients" name="clients" width="66" height="17" border="0" id="clients"></a> 
<a href="javascript:;" onMouseOver="MM_swapImage('contact','','images/mncontact_f2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/mncontact.gif" alt="contact" name="contact" width="66" height="17" border="0" id="contact" /></a>



also i added a few SSis just to test them and they don't show up either

<!--#echo var="LAST_MODIFIED"-->

Thanx in advance
Patric

<´¯`·.¸ Patric ¸.·´¯`>

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-06-2002 19:13

Web server that's hosting www.patricdesign.com doesn't support ASP. I've just checked that domain, and saw that it is running under Apache/1.3.26 (Unix). Therefore, you *can't* use ASP on that server...

You can probably use SSI, but you'll have to change file extension to ".shtml" (but, this can also depend on server configuration).


Rahly
Bipolar (III) Inmate

From: Michigan
Insane since: Jul 2002

posted posted 07-06-2002 19:21

that is not entirely true... you can get modules for apache to run ASP....

Rahly

patric design
Bipolar (III) Inmate

From: 290 km/h, fast lane, Autobahn, Germany
Insane since: Feb 2001

posted posted 07-06-2002 19:29

Damn, looks like i am chnaging provider again. They've deleted the ASP support on my hosting package. Bastards!
Thanx for pointing that out Max.

I got the SSI's working with the SHTML ending, but the include for the two buttons still doesn't work.
What is wrong with that?

<´¯`·.¸ Patric ¸.·´¯`>

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-06-2002 19:33

Rahly, although there are modules like Apache::ASP which can add ASP support to Apache web server, that's not the real Microsoft ASP. You can't use VBScript language (which is default language for ASP). Also, most web hosts don't have it installed, because they don't need it (and why should they even install it when there is PHP and other open source alternatives) and you usually can't add it by yourself (especially if web site is runnning on a shared server)...

Patric, loose the space between "<!--" and "#include" part...




[This message has been edited by mr.maX (edited 07-06-2002).]

Rahly
Bipolar (III) Inmate

From: Michigan
Insane since: Jul 2002

posted posted 07-06-2002 19:40

Actually... i've seen a module for server side VBScript for apache around somewhere.... open source I think.... i'll have to see if i can find a link... but i don't know how much of the code is supported yet....

Rahly

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-06-2002 23:39

lol.

The other issue being can you imagine the coniption fit a Unix admin would throw when you told him to complie Apache with ASP support?





.:[ Never resist a perfect moment ]:.

Rahly
Bipolar (III) Inmate

From: Michigan
Insane since: Jul 2002

posted posted 07-07-2002 00:15

considering i've done it in 15 mins?.... i think it would be a 2 week fit.....

Rahly

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 07-07-2002 14:24

actually, I don't remember quite how it goes, but use can use .htaccess to parse .html files for includes...


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

« BackwardsOnwards »

Show Forum Drop Down Menu