How to get image source on local drive?

O

OptimalDesigns

I'm trying to convert my website onto my CD drive (F:). Images are
giving me problems due to lack of knowledge for sure. My image url
looks like this ... file:///f:/ws_ftp/ode-cd/scripts/imagewrap.img?
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0
and it doesn't work; ie. no picture shown on webpage in netscape 8.1.
Is the part 'picture.image.url=file:///f:/ws_ftp/' ... correct?

My URLs with this 'picture.image.url=../' ... seem to be the problem.
How to get this working right with javascript?
I have tried ...
picture.image.url=../image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0
picture.image.url=f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0
picture.image.url=file://f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0

and none work right... ideas?

Thanks,
Phil
 
E

Erwin Moller

OptimalDesigns said:
I'm trying to convert my website onto my CD drive (F:). Images are
giving me problems due to lack of knowledge for sure. My image url
looks like this ... file:///f:/ws_ftp/ode-cd/scripts/imagewrap.img?
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0
and it doesn't work; ie. no picture shown on webpage in netscape 8.1.
Is the part 'picture.image.url=file:///f:/ws_ftp/' ... correct?

My URLs with this 'picture.image.url=../' ... seem to be the problem.
How to get this working right with javascript?
I have tried ...
picture.image.url=../image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0
picture.image.url=f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0
picture.image.url=file://f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0

and none work right... ideas?

Thanks,
Phil

Hi Phil,

What is picture excactly refering to?
And also you syntax is invalid.

Do you have a image named:
corp-entire_refinery.gif&picture.width.max=50&picture.height.max=0
??

I THINK you mean: (mind the first ?)
corp-entire_refinery.gif?picture.width.max=50&picture.height.max=0

I also wonder what you expect from the extra GET information (the stuff
after the image about max height), since you are getting an image, and not
calling a script, but maybe it is of some use in your situation. (Under
most circumstance it will be ignored completely.)

Regards,
Erwin Moller
 
O

OptimalDesigns

Hi Erwin,
Note ... this is a 2nd image.
Do you have a image named:
corp-entire_refinery.gif&picture.width.max=50&picture.height.max=0
This is my 2nd image/picture in this said:
I THINK you mean: (mind the first ?)
corp-entire_refinery.gif?picture.width.max=50&picture.height.max=0 Nope.

I also wonder what you expect from the extra GET information (the stuff
after the image about max height), since you are getting an image, and not
calling a script, but maybe it is of some use in your situation. (Under
most circumstance it will be ignored completely.)
This WAS someone elses script ... I'm trying to get around it if
possible.
The 2nd URL is causing my problem and that may be due to the old
script. When I look at the image with my browser and click on
properties this is what I see.

Where possible I replace script with simple HTML code. Any
suggestions?

Thanks,
Phil
 
E

Erwin Moller

OptimalDesigns said:
Hi Erwin,

Note ... this is a 2nd image.

??
So what?

I asked you what picture was refering to. I still wonder.
This is my 2nd image/picture in this <img src> stmt.

fine with me. :)

So what do you expect excactly from invalid syntax?
I am at a loss here.
Tip: You MIGHT consider writing whole sentences that explain what goes on in
your head if you expect usefull hints from us...
This WAS someone elses script ... I'm trying to get around it if
possible.

My suggestion would be to first understand the script, then fix its obvious
problems, like strange imagenames (ones that have & in them without a
preceding ?).

The 2nd URL is causing my problem and that may be due to the old
script.

You didn't really go lenthgs to tell us what is 'the old script' and what is
'the new script'.
Seriously, I doubt anyone can really follow you based on this information.

When I look at the image with my browser and click on
properties this is what I see.

WHAT do you see?
Where possible I replace script with simple HTML code. Any
suggestions?

Yes.
THIS is a valid imagesource:
file:////f:/ws_ftp/ode-cd/scripts/imagewrap.img

And this is not:
file:///f:/ws_ftp/ode-cd/scripts/imagewrap.img?
picture.image.url=file:///f:/ws_ftp/ode-cd/image/corp-
entire_refinery.gif&picture.width.max=50&picture.height.max=0

If you want to pass information using the ? at the end of the image, that is
ok, but make sure you understand what urlencoding is.
For example: the / is not valid in the way you use it after the ? (or a &).

Regards,
Erwin Moller
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top