Path problem ?

Discussion in 'HTML' started by Mike, Oct 2, 2004.

  1. Mike

    Mike Guest

    I am buiding a site om my homespace which will be shortly transferred to
    a domian name.
    If you go to the diary page and click on the 9th Oct... I do not seem
    to be able to bring up the pictures.
    Been trying every variation of the path but no luck.
    Would appreciate some help please..

    URL = www.users.globalnet.co.uk/~mikep/fengshan

    Thanks

    Mike
    Mike, Oct 2, 2004
    #1
    1. Advertising

  2. Mike

    Deryck Guest

    "Mike" <> wrote in message
    news:...
    >I am buiding a site om my homespace which will be shortly transferred to
    > a domian name.
    > If you go to the diary page and click on the 9th Oct... I do not seem
    > to be able to bring up the pictures.
    > Been trying every variation of the path but no luck.
    > Would appreciate some help please..
    >
    > URL = www.users.globalnet.co.uk/~mikep/fengshan
    >

    Because 9/10/2004 hasnt happened yet? ;)

    Seriously, at a quick glance all your paths seemed screwed. eg,

    in expmem.html you have something like: <img
    src="../fengshan2004/data/diary.jpg
    in diary.html you have <img src="diary.jpg"


    Yet these html files are in the same folder and are referring to the same
    jpg. (It should probably be fengshan not fengshan2004 but Im guessing).
    I suggest you create a folder called 'images' in the top folder and then
    reference everything as /images/whatever.jpg

    HTH

    Deryck
    Deryck, Oct 2, 2004
    #2
    1. Advertising

  3. Deryck wrote:

    >
    > "Mike" <> wrote in message
    > news:...
    >>I am buiding a site om my homespace which will be shortly transferred to
    >> a domian name.
    >> If you go to the diary page and click on the 9th Oct... I do not seem
    >> to be able to bring up the pictures.
    >> Been trying every variation of the path but no luck.
    >> Would appreciate some help please..
    >>
    >> URL = www.users.globalnet.co.uk/~mikep/fengshan
    >>

    > Because 9/10/2004 hasnt happened yet? ;)
    >
    > Seriously, at a quick glance all your paths seemed screwed. eg,
    >
    > in expmem.html you have something like: <img
    > src="../fengshan2004/data/diary.jpg
    > in diary.html you have <img src="diary.jpg"
    >
    >
    > Yet these html files are in the same folder and are referring to the same
    > jpg. (It should probably be fengshan not fengshan2004 but Im guessing).
    > I suggest you create a folder called 'images' in the top folder and then
    > reference everything as /images/whatever.jpg
    >
    > HTH
    >
    > Deryck


    Is it really possible to refer to directories from top-level?!?!?! Damn. I
    guess my "../../../IMG" values are useless...

    Does that just work under a Unix server? Do Window$ severs cope with this?

    I'd appreciate your advice.

    Roy

    --
    Roy Schestowitz
    http://schestowitz.com
    Roy Schestowitz, Oct 2, 2004
    #3
  4. While the city slept, Mike () feverishly typed...

    > I am buiding a site om my homespace which will be shortly transferred
    > to a domian name.
    > If you go to the diary page and click on the 9th Oct... I do not seem
    > to be able to bring up the pictures.
    > Been trying every variation of the path but no luck.
    > Would appreciate some help please..
    >
    > URL = www.users.globalnet.co.uk/~mikep/fengshan


    All the images seem to be in the fengshan directory, so you need to backstep
    to there. Eg. On the 9th Oct Diary page, the banner will be
    "../../../fengshanbanner1.jpg". Hope that helps.

    As an aside, do you know of the Gavin Newman trip to the China Caves
    recently? I've been helping a colleague with the soundtrack music for
    Gavin's film of the trip, which we are going to see a preview of tonight.

    Cheers,
    Nige

    --
    Nigel Moss
    http://www.nigenet.org.uk
    Mail address not valid. , take the DOG. out!
    In the land of the blind, the one-eyed man is very, very busy!
    nice.guy.nige, Oct 2, 2004
    #4
  5. Mike

    Mike Guest

    On this great daySat, 2 Oct 2004 16:12:48 +0100, "Deryck"
    <> wrote:

    ><
    ><"Mike" <> wrote in message
    ><news:...
    ><>I am buiding a site om my homespace which will be shortly transferred to
    ><> a domian name.
    ><> If you go to the diary page and click on the 9th Oct... I do not seem
    ><> to be able to bring up the pictures.
    ><> Been trying every variation of the path but no luck.
    ><> Would appreciate some help please..
    ><>
    ><> URL = www.users.globalnet.co.uk/~mikep/fengshan
    ><>
    ><Because 9/10/2004 hasnt happened yet? ;)
    ><
    ><Seriously, at a quick glance all your paths seemed screwed. eg,
    ><
    ><in expmem.html you have something like: <img
    ><src="../fengshan2004/data/diary.jpg
    ><in diary.html you have <img src="diary.jpg"
    ><
    ><
    ><Yet these html files are in the same folder and are referring to the same
    ><jpg. (It should probably be fengshan not fengshan2004 but Im guessing).
    ><I suggest you create a folder called 'images' in the top folder and then
    ><reference everything as /images/whatever.jpg
    ><
    ><HTH
    ><
    ><Deryck
    ><
    ><

    Thanks Deryck

    I am just trying to get the 9th and 10th right.. then I can move on.....
    and I appreciate the other links are screwed for the time being.. so
    ignore them.

    I originally had all the images in "data" but was having trouble with
    that path ... it all works fine on my pc ... but not on my homespace.

    Mike
    Mike, Oct 2, 2004
    #5
  6. In news:,
    Mike <> walked into the bar with a grape in each
    nostril and said to the bartender:
    :: I am buiding a site om my homespace which will be shortly
    :: transferred to a domian name.
    :: If you go to the diary page and click on the 9th Oct... I do not
    :: seem to be able to bring up the pictures.
    :: Been trying every variation of the path but no luck.
    :: Would appreciate some help please..
    ::
    :: URL = www.users.globalnet.co.uk/~mikep/fengshan
    ::
    :: Thanks
    ::
    :: Mike

    Looks like you're telling the browser to look for the image(s) in the root
    directory of www.users.globalnet.co.uk/

    In other words - right click on where the image is supposed to be and the
    property description says
    http://www.users.globalnet.co.uk/fengshan/fengshanbanner1.jpg

    your page source says <img src="/fengshan/fengshanbanner1.jpg" width="796"
    height="176">

    the first "/" is telling it to look in the root directory. If you're to use
    that path, you need to change it to:
    <img src="/~mikep/fengshan/fengshanbanner1.jpg" width="796" height="176">

    BTW - you should not get in the habit of using the browser to size the
    image. Make the image the size that you want.

    cheers

    -- Matt
    Matt-The-Hoople, Oct 2, 2004
    #6
  7. Mike

    Deryck Guest

    "Mike" <> wrote in message
    news:...
    >
    > I am just trying to get the 9th and 10th right.. then I can move on.....
    > and I appreciate the other links are screwed for the time being.. so
    > ignore them.
    >
    > I originally had all the images in "data" but was having trouble with
    > that path ... it all works fine on my pc ... but not on my homespace.
    >


    Troublesome image:
    http://www.users.globalnet.co.uk/~mikep/fengshan/fengshan/fengshanbanner1.jpg
    Viewable image:
    http://www.users.globalnet.co.uk/~mikep/fengshan/fengshanbanner1.jpg

    HTH

    Deryck

    PS...you might find the whole fodler structure less confusing when you get
    your "proper" domain sorted.
    Deryck, Oct 2, 2004
    #7
  8. Mike

    Mike Guest

    On this great daySat, 2 Oct 2004 16:18:03 +0100, "nice.guy.nige"
    <> wrote:

    ><While the city slept, Mike () feverishly typed...
    ><

    <snipped>
    ><
    ><All the images seem to be in the fengshan directory, so you need to backstep
    ><to there. Eg. On the 9th Oct Diary page, the banner will be
    ><"../../../fengshanbanner1.jpg". Hope that helps.
    ><
    ><As an aside, do you know of the Gavin Newman trip to the China Caves
    ><recently? I've been helping a colleague with the soundtrack music for
    ><Gavin's film of the trip, which we are going to see a preview of tonight.
    ><
    ><Cheers,
    ><Nige
    ><
    ><--
    ><Nigel Moss
    ><http://www.nigenet.org.uk


    Thanks for that .. did try it .. lost banner on pc .. and looking at
    properties when it does NOT show up on WWW I get this ....
    file:///C:/fengshan/fengshan/fengshanbanner1.jpg.... too many fengshans'

    My head hurts !!

    As for the Gavin trip .. I reckon the film will be awesome. I saw him do
    a Steven Nunwick lecture at Hull .. he showed film of diving in the
    Picos de Europa (N.Spain) .. Everyone was pretty gobsmacked at the
    quality of it all.

    Now back to the bloomin website ... we go next Sat !!
    Mike
    Mike, Oct 2, 2004
    #8
  9. Mike

    Mike Guest

    On this great daySat, 02 Oct 2004 15:26:08 GMT, "Matt-The-Hoople"
    <> wrote:


    ><
    ><Looks like you're telling the browser to look for the image(s) in the root
    ><directory of www.users.globalnet.co.uk/
    ><
    ><In other words - right click on where the image is supposed to be and the
    ><property description says
    ><http://www.users.globalnet.co.uk/fengshan/fengshanbanner1.jpg
    ><
    ><your page source says <img src="/fengshan/fengshanbanner1.jpg" width="796"
    ><height="176">
    ><
    ><the first "/" is telling it to look in the root directory. If you're to use
    ><that path, you need to change it to:
    ><<img src="/~mikep/fengshan/fengshanbanner1.jpg" width="796" height="176">
    ><
    ><BTW - you should not get in the habit of using the browser to size the
    ><image. Make the image the size that you want.
    ><
    ><cheers
    ><
    ><-- Matt
    ><
    ><


    Bingo ! ....

    Now I will tidy things up and put images in a separate folder.

    thanks Matt ..

    Mike
    Mike, Oct 2, 2004
    #9
  10. Mike

    Neal Guest

    On Sat, 2 Oct 2004 16:12:48 +0100, Deryck <>
    wrote:


    > Because 9/10/2004 hasnt happened yet? ;)


    It has here. ;)
    Neal, Oct 2, 2004
    #10
  11. Mike

    Deryck Guest

    "Neal" <> wrote in message
    news:eek:...
    >
    >> Because 9/10/2004 hasnt happened yet? ;)

    >
    > It has here. ;)


    Doh! Can't believe that I left myself open to that one.

    Deryck
    Deryck, Oct 2, 2004
    #11
  12. On Sat, 02 Oct 2004 16:17:25 +0100, Roy Schestowitz
    <> wrote:

    [snip]

    > Is it really possible to refer to directories from top-level?!?!?! Damn.
    > I guess my "../../../IMG" values are useless...
    >
    > Does that just work under a Unix server? Do Window$ severs cope with
    > this?


    It has nothing to do with the server. It's up to the user agent to work
    out where a link goes, based on whether the URI is relative or absolute,
    and what the base URI for the document is.

    The only browser bug I can think of at the moment is that IE doesn't
    understand what an empty URI is. It should refer to the current document,
    but IE treats it as the directory of the current document. Oddly, it does
    use the correct address with the form action attribute.

    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.
    Michael Winter, Oct 2, 2004
    #12
  13. Mike

    Dan Abrey Guest

    "Deryck" <> wrote in message
    news:...
    >
    > "Neal" <> wrote in message
    > news:eek:...
    > >
    > >> Because 9/10/2004 hasnt happened yet? ;)

    > >
    > > It has here. ;)

    >
    > Doh! Can't believe that I left myself open to that one.


    Dont worry, I did it too - if only dates weren't about as cross-system
    compatible as HTML ;)
    Dan Abrey, Oct 2, 2004
    #13
  14. Mike

    [KS] Guest

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Matt-The-Hoople wrote:
    | Looks like you're telling the browser to look for the image(s) in the root
    | directory of www.users.globalnet.co.uk/
    |
    | In other words - right click on where the image is supposed to be and the
    | property description says
    | http://www.users.globalnet.co.uk/fengshan/fengshanbanner1.jpg
    |
    | your page source says <img src="/fengshan/fengshanbanner1.jpg" width="796"
    | height="176">
    |
    | the first "/" is telling it to look in the root directory. If you're
    to use
    | that path, you need to change it to:
    | <img src="/~mikep/fengshan/fengshanbanner1.jpg" width="796" height="176">

    Just curious here. Shouldn't the <img src="/foobar.jpg"> ask the web
    server to look for the image in the "web root" directory?

    I hope Matt was saying the same thing. In Unix context (which the user
    is on as he has the ~/ dir structure) talking about root directories,
    the root and web root would mean two different things.

    /KS
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)
    Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

    iD8DBQFBYgU8xei0qAn4ScMRAvhgAJ49KG/bCZG4iRsa71/q3xKUdWNt0wCgrx/t
    s+8GF4omuq7z8c8bqZBhvX4=
    =MGFM
    -----END PGP SIGNATURE-----
    [KS], Oct 5, 2004
    #14
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Keith-Earl
    Replies:
    1
    Views:
    1,966
    Peter O'Reilly
    May 3, 2004
  2. Replies:
    0
    Views:
    2,243
  3. Mupota Muchelemba
    Replies:
    1
    Views:
    906
    Tony Morris
    Feb 4, 2004
  4. Replies:
    3
    Views:
    397
  5. R. Sherwin Kartick

    embedded perl path $ENV{PATH} problem

    R. Sherwin Kartick, Sep 22, 2004, in forum: Perl Misc
    Replies:
    0
    Views:
    183
    R. Sherwin Kartick
    Sep 22, 2004
Loading...

Share This Page