How to get image source on local drive?

  • Follow


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

0
Reply philbru (6) 1/31/2007 8:18:34 PM

OptimalDesigns wrote:

> 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

0
Reply Erwin 2/1/2007 12:53:41 PM


Hi Erwin,

> OptimalDesigns wrote:
> > 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?
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 <img src> stmt.

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

0
Reply OptimalDesigns 2/1/2007 11:34:37 PM

OptimalDesigns wrote:

> Hi Erwin,
> 
>> OptimalDesigns wrote:
>> > 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?
> Note ... this is a 2nd image.

??
So what?

I asked you what picture was refering to. I still wonder.

> 
>> 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 <img src> stmt.

fine with me. :)

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

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

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

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

> 
> Thanks,
> Phil
>> Erwin Moller

0
Reply Erwin 2/2/2007 11:24:09 AM

3 Replies
291 Views

(page loaded in 0.062 seconds)

Similiar Articles:













7/14/2012 8:36:44 AM


Reply: