Petr Vileta (fidokomik) wrote:
Quote:
I have a form with few text inputs. Every text input is followed by
image type input.
Image type inputs have poor usability, accessibility, robustness, and
maintainability properties. Otherwise they're excellent! :-)
Quote:
In this form I want to have 1 submit button on the top.
One normal submit button per form is really the only robust approach.
Choices between alternatives need to be made by the user prior to submitting
the form, not by the way he submits it (e.g. which button is used). This is
not so by the specs but by the differences between implementations and gray
areas in specs.
Quote:
A problem I want to resolve is: when user type something into
text input and press enter then I want to submit form by image type
button but not by submit button.
You need to redefine the problem. There is no way to achieve that in HTML,
and any JavaScript way would be unreliable (and probably tricky).
Quote:
I tried to use tabindex parameter
but this not work as I expect.
Why did you expect to do anything except its defined meaning?
Any URL that explains the original problem or goal?
Any URL?
Quote:
<form name="test" action="index.php" method="post">
>
<input type="submit" name="ok" value="Accept" tabindex=100>
A submit button at the start of a form (that contains other fields as well)
is so uncommon that it is poor usability. Normally a submit button appears
at a place where the user is expected to submit the form.
Quote:
<span>Item 1
<input type="text" name="i1" tabindex=1>
<input type="image" src="basket.gif" name="add1" tabindex=2>
</span>
That's illogical markup; <spanmeans nothing.
And you have no textual explanation of the meanings of fields, etc.
What do you need the image buttons for? You get a name/value pair from a
text input field - isn't that enough for processing?
--
Yucca,
http://www.cs.tut.fi/~jkorpela/