Path problem ?

M

Mike

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
 
D

Deryck

Mike said:
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
 
R

Roy Schestowitz

Deryck said:
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
 
N

nice.guy.nige

While the city slept, Mike ([email protected]) 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
 
M

Mike

<
<<>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
 
M

Matt-The-Hoople

In Mike <[email protected]> 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
 
D

Deryck

Mike said:
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.
 
M

Mike

<While the city slept, Mike ([email protected]) feverishly typed...
<
<
<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
 
M

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
<
<

Bingo ! ....

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

thanks Matt ..

Mike
 
M

Michael Winter

On Sat, 02 Oct 2004 16:17:25 +0100, Roy Schestowitz

[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
 
D

Dan Abrey

Deryck said:
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 ;)
 
K

[KS]

-----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-----
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,044
Latest member
RonaldNen

Latest Threads

Top