S
sylvestre
Hi,
I've a little script that disables/enables some fields in a form. It
works correctly, no problem.
Problem arise when a disabled field becomes enabled again: the enter
key pressed in that field do not trigger the form submittion, or any
other "onXXX" event. But it does not raise a JS error either... Of
course, if the same field is enabled when page loads, the enter key
works perfectely well and submits the form. So it's really the state
change that cause the problem. To make it even more strange, once the
enter key has been pressed without effect, the enter key submittion is
disabled in all other fields, even the ones which status have not been
changed!!
Precisions:
- problem shows under IE 5.5 or 6.0.
- there are no specific treatment on key press, only events are
onBlur and onFocus
Could someone help me on this ?
Sylvestre
I've a little script that disables/enables some fields in a form. It
works correctly, no problem.
Problem arise when a disabled field becomes enabled again: the enter
key pressed in that field do not trigger the form submittion, or any
other "onXXX" event. But it does not raise a JS error either... Of
course, if the same field is enabled when page loads, the enter key
works perfectely well and submits the form. So it's really the state
change that cause the problem. To make it even more strange, once the
enter key has been pressed without effect, the enter key submittion is
disabled in all other fields, even the ones which status have not been
changed!!
Precisions:
- problem shows under IE 5.5 or 6.0.
- there are no specific treatment on key press, only events are
onBlur and onFocus
Could someone help me on this ?
Sylvestre