HighDots Forums  

Re: Using jS to display an image from file

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Using jS to display an image from file in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Álvaro G. Vicario
 
Posts: n/a

Default Re: Using jS to display an image from file - 05-21-2008 , 11:44 AM






Tim Streater escribió:
Quote:
var filename = document.form1.filesent.value;
var Img = new Image ();
Img.src = filename;
A string like "C:\Picture.jpg" is not a valid URI. Try adding a
"file://" prefix and maybe escaping file name characters that need so.



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.