dhamaso / ufd

Automatically exported from code.google.com/p/ufd
GNU General Public License v2.0
0 stars 0 forks source link

Cannot submit html form with the Return key in IE when submit is an image #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I found out ufd is preventing from submitting html form with the Return 
key (in other plain text input elements) in IE 7 and 8 (don't know about 
6) when the submit button is an image (input type="image").

E.g.
<input type="text" .../>
<ufd>
<input type="image" src="..." />
=> won't work with the Return key pressed in the text input, the order of 
the elements doesn't seem to matter

Digging into the code revealed these two lines in the "disable" method:

this.input.attr("disabled", "disabled");
this.selectbox.attr("disabled", "disabled");

When these two are commented, submitting with the Return key works fine. I 
see the fields are enabled at the and of the method but can't really say 
how it affects the method and why they have to be disabled. Also I cannot 
explain why it is an issue for IE, especially when the fields are enabled 
again. There is no problem with other browsers.

Thanks for your help!

Original issue reported on code.google.com by zabojnik...@gtempaccount.com on 28 Apr 2010 at 8:41

GoogleCodeExporter commented 9 years ago
http://ufd.googlecode.com/svn/trunk/issueExamples/15.html

Built an example and verified bug.

Original comment by thetoolman on 15 Sep 2010 at 7:01

GoogleCodeExporter commented 9 years ago
http://ufd.googlecode.com/svn/trunk/issueExamples/15.html

Built an example and verified bug.

Original comment by thetoolman on 15 Sep 2010 at 7:01

GoogleCodeExporter commented 9 years ago
Wow it seems to be a basic iE6-8 bug, but I can't find any documentation on 
this bug - surely this isn't an unknown bug?

The example page above now has a minimal, no JQuery, raw JS example that still 
exhibits the bug.  

Original comment by thetoolman on 15 Sep 2010 at 9:03

GoogleCodeExporter commented 9 years ago
I have updated the example, but I haven't found a solution.  If anyone can 
suggest how to work around this bug, let me know.

Original comment by thetoolman on 4 Jul 2011 at 8:32