Jump to content


Images Relevant to Site Root


2 replies to this topic

#1 pizzaboy

    Young Padawan

  • Members
  • Pip
  • 22 posts

Posted 18 May 2006 - 09:12 AM

I'm trying to insert an object (image) onto my webpage according to its location based on the site root. In Dreamweaver, this appears to work fine, but when I upload the page and image to the testing server, IE fails to show the image!?!? ^_^

When I make the url relevant to the document, this appears to rectify the problem, however the image needs to be accessed by multiple pages so ideally I would prefer if I could reference it according to its location on my site.

This is most likely to be an ISS problem, as Dreamweaver doesn't physically alter the layout of html (asp, or whatever). Has anyone else had this problem in the past? Is there a solution to it? Any ideas?

Thanks.

#2 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 18 May 2006 - 11:21 AM

I think i know what you mean.

Ok, say a document is here: /files/html/index.html

../image.gif Will find a file @ /files/image.gif

/image.gif will find a file @ the root. (before /files).

Just use ../ in your image source.

#3 pizzaboy

    Young Padawan

  • Members
  • Pip
  • 22 posts

Posted 18 May 2006 - 12:59 PM

Thanks Matt.

Just so you know, I also had a bad naming convention going as well, and whereas Dreamweaver wasn't as fussy about it, IIS obviously was!

Thanks again.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users