Forum Moderators: open

Message Too Old, No Replies

Submitting a form with the Enter key in IE - bug?

Disabling and enabling form fields a possible cause

         

JamieCon

2:19 pm on Oct 11, 2006 (gmt 0)

10+ Year Member



Hey all,

To be honest i'm not hopeful of a workaround or solution to this problem - i'm more interested in finding someone else that's had this problem just for confirmation!

I have a pretty standard form set up on a web page. It has about 6 text fields which are enabled / disabled depending on the selection of a radio button set. This is achieved using Javascript.

Everything works fine in Fx and Opera, however in IE the form cannot be submitted using the Enter key. It's taken me a while to figure out that the reason for this not working is because text fields are being enabled / disabled.

This appears to be an IE bug, and i'm interested to see if anyone else has had this problem. A (relatively) thorough search doesn't seem to have turned up anything for me.

Thanks in advance for any comments,

Jamie

txbakers

3:02 pm on Oct 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've run into this problem before, and I don't have any hidden fields (I don't think so at least) on that form.

I do have multiple forms on the same screen, but it's very frustrating to me as the programmer and the user.

I haven't found a solution either.

kaled

3:42 pm on Oct 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you disable a textbox that is focused, you may also have to focus another control. If nothing is focused, the enter key probably won't work.

It's also worth noting that the enter key will only work with true submit buttons rather than a standard button with an event handler attached to perform the submit.

Kaled.