Hey all I have the following code, which works fine in IE, but has no effect in FireFox.
Basically I want to set the src of the image object to that of the selected image so that the client can preview the image before uploading.
Here is the code snippet:
Does anyone know what I am doing wrong?
Any and all help is GREATLY appreciated.
Sean.![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
Basically I want to set the src of the image object to that of the selected image so that the client can preview the image before uploading.
Here is the code snippet:
Code:
<input class="FormField" onchange="document.getElementById('imgPreview').src=this.value" type="file" id="inpFile" style="position: relative; width:300px;" />
<img id="imgPreview" src="../../../_Images/shim.gif" height="80" alt="Image Preview" />
Does anyone know what I am doing wrong?
Any and all help is GREATLY appreciated.
Sean.
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)