Using file:// for an image source

"Steffan A. Cline" <[email protected]> Sun, 04 Jun 2006 01:53:28 -0700
Newsgroups gmane.comp.web.dom.wdf
Message-ID <C0A7ED98.3A28D%[email protected]>
I am trying to do something seemingly difficult. I am trying to take the
value from a file input and set the source of an image to the value of the
file input. It seems to only work on Safari. In FF I can do it and then when
viewing the rendered chart I see the image is there with the correct path
and all. For example file:///Users/me/desktop/1234.jpg Is this a security
thing? I can have multiple images from multiple domains on a page but not
one from the users hd. Confusing? Here is a sample of the code:

<img src="" id="preview">

<input type="file" name="test"
onchange="document.getElementById('preview').src = ('file://'+this.value);">


Again, this works in Safari perfectly. In FF I can view the source chart and
it has the correct path. Just not displaying. I even tried using the DOM to
create a new image and plant it on the page. The image is there but not
displayed. Is there a work around for this?




Thanks

Steffan

---------------------------------------------------------------
T E L  6 0 2 . 5 7 9 . 4 2 3 0 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline
[email protected]                             Phoenix, Az
http://www.ExecuChoice.net                                  USA
AIM : SteffanC          ICQ : 57234309
The Executive's Choice in Lasso driven Internet Applications
                                  Lasso Partner Alliance Member
---------------------------------------------------------------





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~-> 

Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/