input type="file" onchange not firing

R

Ron Brennan

I've spent all morning on this and now think there is a (slight?) possiblity
that onchange doesn't work for input type="file". Can anybody shed any light
on this. The onblur fires just fine. The code is being created inside a
servlet and my version of IE is 5.0.

<td>
<input type="file"
id="pictureFile"
value="Null"
name="pictureFile"
style="display:none;"
onchange="alert('File onchange fired.');">
</input>
<td>
 
R

Ron Brennan

Ron Brennan said:
I've spent all morning on this and now think there is a (slight?) possiblity
that onchange doesn't work for input type="file". Can anybody shed any light
on this. The onblur fires just fine. The code is being created inside a
servlet and my version of IE is 5.0.

<td>
<input type="file"
id="pictureFile"
value="Null"
name="pictureFile"
style="display:none;"
onchange="alert('File onchange fired.');">
</input>
<td>

-----------------------
I just discovered on the Web that onchange doesn't work in version 5 but
works in version 6. The workaround is:

onpropertychange="if(event.propertyName=='value') {alert('onchange
fired.');}"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top