470,613 Members | 2,106 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,613 developers. It's quick & easy.

input type="file" onchange not firing

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>

Jul 23 '05 #1
1 21911


"Ron Brennan" <rb******@magma.ca> wrote in message
news:7K********************@magma.ca...
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.');}"

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by @lias | last post: by
1 post views Thread by Jesper Hermansen | last post: by
2 posts views Thread by IkBenHet | last post: by
7 posts views Thread by Tim Slattery | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.