ithanshui / jquery-multifile-plugin

Automatically exported from code.google.com/p/jquery-multifile-plugin
0 stars 0 forks source link

Button requires double-click in IE10 #166

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We have implemented the MultiFile plugin into our order interface (thank you, 
it works great!), and we've been alerted to a problem with IE10. Users using 
IE10 have to double-click a button element in order to bring up the file 
selector dialog instead of a single click.

You can reproduce by:
- navigating to www.expressitnow.com
- click TRY IT NOW in top nav
- enter an email address (test@example.com will work), click Next
- on next screen, see "Add a document ..." button

Thank you!
-Michael

Original issue reported on code.google.com by michael....@elanex.biz on 9 Nov 2012 at 5:39

GoogleCodeExporter commented 8 years ago
Having trouble reproducing the error. Any news on this?

Original comment by fyneworks on 6 Jun 2013 at 4:50

GoogleCodeExporter commented 8 years ago
Turns out IE is very strict about ensuring that a user clicked either the 
"browse" button or a label control associated with the upload input. On my 
page, I am replacing the standard upload button with a custom one, and I was 
using a click event handler on a custom button to trigger the upload click. In 
order to make this work in IE, I had to wrap my custom button inside a <label> 
associated with the upload input control. I then removed my JavaScript handler 
to prevent the file picker coming up twice in Chrome.

However, this did not work with FireFox. Turned out FF has a bug (fixed in 
version 23, which, as of this writing, is not yet released), so I had to bring 
back my JS handler that was only applied where browser == FireFox and version < 
23.

You can see result in location described in original submission.

Original comment by michael....@elanex.biz on 8 Jul 2013 at 2:47

GoogleCodeExporter commented 8 years ago
Thanks for sharing your results! It will help others with the same problem.

Original comment by diego.a...@gmail.com on 9 Jul 2013 at 12:26

GoogleCodeExporter commented 8 years ago
And we'll certainly pass it on to anybody with a similar issue

Original comment by fyneworks on 9 Jul 2013 at 12:28