Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - SSI and graphics
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SSI and graphics

 Post Reply Post Reply
Author
redhand View Drop Down
Newbie
Newbie


Joined: 23 May 2005
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote redhand Quote  Post ReplyReply Direct Link To This Post Topic: SSI and graphics
    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
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post 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.


Edited by dfrancis - 28 May 2005 at 1:38pm
Back to Top
redhand View Drop Down
Newbie
Newbie


Joined: 23 May 2005
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote redhand Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
redhand View Drop Down
Newbie
Newbie


Joined: 23 May 2005
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote redhand Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2005 at 4:26pm
MANY THANKS - Both of you
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.