On Mon, 2002-11-04 at 11:40, Ian Bicking wrote: > On Mon, 2002-11-04 at 08:15, Jason Hildebrand wrote: > > I tracked down the source of some recent tracebacks. It seems that on > > IE, if you're in a text field of a form and hit enter, the form gets > > submitted _without_ the name/value of any submit button included in the > > form data, so none of your actions will get called, and writeHTML will > > be called instead. > > Sean suggested the hidden field -- I'd be interested in exactly what the > behavior is when there's two submit buttons.
A.J.Flavell (http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html) writes: "As further discussion on usenet showed, the behaviour of MSIE4 was rather complex and unexpected. If there was only a single text-input field, then hitting Enter when the focus is on the text-input field would submit the form without sending the name/value pair associated with a submit control. Surprisingly, however, if there were two text-input fields, then hitting Enter when the focus was on either of those fields would result in the form being submitted together with the name/value pair of the submit control (or of the first submit control if there were more than one). This seems illogical and inconsistent. " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I couldn't agree more. What's worse, I've just confirmed that this behaviour still holds true for IE 6. In a nutshell: -if you have a single text field in your form, IE doesn't send the name/value of _any_ submit button. Sean's suggestion will work here. -if you have two or more text fields, IE sends the name/value pair of the _first_ submit button in the form, so adding a hidden field would have no effect. -- Jason D. Hildebrand [EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
