T
TuftyTrue
Hi,
On my site the user can browse to an image with <input type=file etc>.
Althrough I have no problem swapping images with:
document.getElementById('PictureToDisplay').src =
URLtoPictureOnWebServer.src;
I cant get it to work with:
document.getElementById('backgroundLayer').src =
PathToPictureOnLocalDrive.src
I've tried hardcodeing the variable (with and without quotes) with all
the obvious values:
"C:\pics\mypic.jpg", "file:///c:/pics/mypic.jpg" etc etc but cant get
it to work.
Any ideas why its fine with remote pictures, but not with local ones?
(Also, just to muddy the waters even more, I've managed to display a
local image using a style.setbackgroundimage="path to local image", but
abandoned this as I cound not get the image to re-size )
Any help gratefully recieved
Regards
Eadmund
On my site the user can browse to an image with <input type=file etc>.
Althrough I have no problem swapping images with:
document.getElementById('PictureToDisplay').src =
URLtoPictureOnWebServer.src;
I cant get it to work with:
document.getElementById('backgroundLayer').src =
PathToPictureOnLocalDrive.src
I've tried hardcodeing the variable (with and without quotes) with all
the obvious values:
"C:\pics\mypic.jpg", "file:///c:/pics/mypic.jpg" etc etc but cant get
it to work.
Any ideas why its fine with remote pictures, but not with local ones?
(Also, just to muddy the waters even more, I've managed to display a
local image using a style.setbackgroundimage="path to local image", but
abandoned this as I cound not get the image to re-size )
Any help gratefully recieved
Regards
Eadmund