D4rkradical / jquery-multifile-plugin

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

IE form submit validation using onSubmit return false #96

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi guys

Thanks for the wonderful plugin. I have a small problem to report in IE.

I am having a simple form in IE. One of the inputs in form is <input 
class="multi" type="file">. I am validating other inputs in form using onSubmit 
event. I give onSubmit="return myvalidateFn()". My validate function return 
false if validation fails.

But in IE form is submitted even though we return false. I verified everything 
else and checked with single inputs. And this issue comes only when 
class="multi" is present in a file type input. Plugin is registerd with that 
input element if we give class="multi" and thats causing this problem.

Any ideas ? It will be very helpful for me.

Thanks
Subin Sebastian
subin20@gmail.com

a simple form like this will be submitted in IE only when class is given as 
'multi' for file input.

<form onSubmit="javascript:return false;" action="/action">
<input type="file" class="multi"/>
</form>
<>

Original issue reported on code.google.com by subins...@gmail.com on 28 Oct 2010 at 3:42

GoogleCodeExporter commented 8 years ago
        $('form')
        .not('MultiFile-intercepted')
        .addClass('MultiFile-intercepted')
        .submit($.fn.MultiFile.disableEmpty);

Original comment by hellolibo@gmail.com on 18 Jan 2011 at 7:20

GoogleCodeExporter commented 8 years ago
The project has been dormant for over a year and many of the support requests 
have been resolved and/or are invalid. So we're going to archive them all, 
pending review.

If you're still having a problem with the plugin, please visit the project page 
and re-open the issue. We do apologize for any inconvenience this may cause, 
but please bear with us...  we'll be making improvements to the plugin and its 
documentation over the coming weeks.

Stay tuned; and thanks for your support!

The Fyneworks Team
http://twitter.com/fyneworks

Original comment by fyneworks on 26 Jan 2012 at 1:37