Print Page | Close Window

SSI and graphics

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=15267
Printed Date: 30 March 2026 at 3:20am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: SSI and graphics
Posted By: redhand
Subject: SSI and graphics
Date Posted: 28 May 2005 at 1:32pm
Hi I hate the expression -but- I am a newbie where includes are concerned. Now I do realise its not rocket science (:-) but I am having a real problem understanding this fault,

I create an an asp page (with graphic and text) and place it in a folder on the root
I create an asppage and save it on the root

I use <!--#include file="includes/header.asp" --> and it displays the graphic and text

I create an asppage and save it in a folder and use
<!--#include file="../includes/header.asp" --> and it displays graphic and text

If I move the file one folder deeper and use
<!--#include file="../../includes/header.asp" --> it doesnt display the graphic but does display the text ??

Regards Paddy



Replies:
Posted By: dfrancis
Date Posted: 28 May 2005 at 1:37pm
Create your img tags relative to the root.
 
instead of
<img src="images/image.jpg" /> 
 
write
 
<img src="/images/image.jpg" /> 
 
Makes all the difference in the world.


Posted By: redhand
Date Posted: 28 May 2005 at 2:31pm
Many thanks - but -

I had done that already
The image is on the header.asp file as
 <td><img src="/images-template/banner4.jpg" width="740" height="120"></td>.

But now it works - yet b4 it didnt !!!


As always Thankyou



Posted By: dpyers
Date Posted: 28 May 2005 at 3:55pm
Using include virtual instead of include file eliminates a lot of pathing problems when you use the include at different levels of your directory tree.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: redhand
Date Posted: 28 May 2005 at 4:26pm
MANY THANKS - Both of you



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net