Critical problem facing to display image to my site

Discussion in 'HTML & Website Design' started by Subikar, Nov 20, 2007.

  1. #1
    I am writing code to display image in a script

    <img src="image/imagename.jpg" />

    This is not displaying in ie whenever I am right clicking on the image to see the image path it is showing the url like this

    http:///images/imagename.jpg

    In firefox it is showing correct

    If I am giving the fullpath like this ways

    <img src="http://www.sitename.com/image/imagename.jpg" />
    Then it is displaying correct.
    May I know the what is the exact problem I am facing. Is that any server configaration error or my script error??

    Please suggest asap.

    2 days before it was runnning fine but now giving such type of error.

    Thanks,
    Subikar
     
    Subikar, Nov 20, 2007 IP
  2. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Hey no one is here who can solve my question.
     
    Subikar, Nov 20, 2007 IP
  3. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #3
    the only way it'd come out like http:///images/imagename.jpg is if your path was /images/imagename.jpg

    In that case change it to images/imagename.jpg and make sure the directory and image are named acordingly.
     
    twistedspikes, Nov 20, 2007 IP
  4. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #4
    No file path is like this way images/imagename.jpg there but still showing error.

    PLease suggest.

    Thanks,
    Subikar
     
    Subikar, Nov 20, 2007 IP
  5. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #5
    I'd have to get the file and look at it properly, any way you could zip it and send it to me?
     
    twistedspikes, Nov 21, 2007 IP