On 11 May 2011 Mike Hobbs  wrote:

> When page content includes something like this:
> <form method="POST" action="some.cgi"> ...
> <input ....>
> <input type="submit" value="Go">  ...
> <input type="submit" value="Clear">
> </form>
> and the user presses Return,
> every other browser will send the post request with the
> various arguments from the input elements (i.e. they
> default to doing the submit as if the user clicked the Go
> button), but NS seems to default to actioning the Clear
> button.
> If I change the Clear button to
> <input type="button" value="Clear">
> then pressing Return sends the post request as if the Go
> button was clicked (same as other browsers). However,
> NS gives a "Warning: button can not be activated" on Clear.
> So it seems that NS can't have forms with more than one
> submit button.

Normally pressing Return will only work if there's a text input field. 
If a form is submitted automatically when you select from a menu and 
has no submit button you're completely stuffed.

However this sounds a bit like the problem I was having this morning 
with nPower's meter reading page. After entering your readings you get 
a form on which you can enter your details. On the same page there is 
a smaller form for logging in. If you type your password and press 
Return the page comes back with errors on all the fields in the main 
form because you haven't entered any data. If you click the "Log in" 
button you get logged in. For some reason Return is submitting the 
wrong form. It could be faulty html of course.


-- 
Richard Porter                        http://www.minijem.plus.com/
                                      mailto:[email protected]
I don't want a "user experience" - I just want stuff that works.

Reply via email to