Note that there are some explanatory texts on larger screens.

plurals
  1. POimage uploading in firefox and chrome
    primarykey
    data
    text
    <pre><code>&lt;html&gt; &lt;body&gt; &lt;form name="Upload" enctype="multipart/form-data" method="post"&gt; Filename: &lt;INPUT type="file" id="submit"&gt; &lt;INPUT type="button" id="send" value="Upload"&gt; &lt;/form&gt; &lt;div id="div" align="center" style="height: 200px;width: 500px;border-style: ridge;border-color: red"&gt;&lt;/div&gt; &lt;/body&gt; &lt;script type="text/javascript"&gt; var img_id=0 var image = new Array() document.getElementById('send').onclick=function() { img_id++ var id="imgid"+img_id image = document.getElementById('submit').value; document.getElementById('div').innerHTML="&lt;img id='"+id+"' src='"+image+"' width=500px height=200px&gt;" } &lt;/script&gt; &lt;/html&gt; </code></pre> <p>problem with this code is that it's only working in IE not in other browser(firefox,chrome,....etc) Thanks in advance.</p> <p>Edit:(updated my post in response to Naren, Bitslitter's) Guys, here the text to add to the discussion posted below:</p> <p>Thanks guys for the feedback, Naren and Bitslitter's feedback was definitely enlightening. </p> <p>Would you please recommend how to go about achieving what I want to do here:</p> <p>In my web application, there is a button, upon clicking a button, a browser open dialogue box appears asking for a image file, user selects an image, the image opens in the web application. Its important for me to have the browser open the image from the local server, as I want to use the HTML5 canvas tag to read the pixels and then convert those pixels into SVG dynamically (using JS). It all sounds more complicated than it should be.</p> <p>Web applications like Mugtug's Darkroom (http://mugtug.com/darkroom/) have been able to achieve exactly what I want to.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload