« New email paradigms | Main | Labels and the DOM »
July 16, 2004
FInding the value of a FileUpload form element using Javascript - easy? no. Well... yes!
Struggled with this one for a while tonight. If you want to read the value of a form input element for uploading files, so:
var Temp = document.FormName.FileUploadName.value
then this is wrong
<input name="FileUploadName" type="file">
you have to include value="" even though it is empty. So this is correct:
<input name="FileUploadName" type="file" value="">
Pedantic feckers....
Posted by dottie at July 16, 2004 2:38 AM