On 1/10/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I've a form with a text input field and two <html:image> buttons : one
> to "add new user" and one for "search"
>
> My porblem is when I type [Return] from input field, the form is
> submited with some strange image button informations :
> - on IE, non image button (x,y position) is submited, so I can use the
> default beheviour.

??? You said above that both your buttons are image buttons.

> - on Firefox, I get x=0 and y=0 for the first "add new user" button.
>

For an image button, I get the following:

// MSIE: name.x=xcoord&name.y=ycoord
// Firefox: name.x=xcoord&name.y=ycoord&name=value

> This behaviour is not expected, as I'd like default submit to go to
> "search", and "add new user" to occur only when button is explicitly presed.

I have a hidded "defaultsubmit" field. Unless you explicitly do so in
Javascript, browser is supposed to submit no more than one submit
element. I check whether I receive button submit first. If yes I use
it, if not - I use value from "defaultsubmit" field.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to