Re: multiple submit - possible workaround advice
Re: multiple submit - possible workaround advice
- Subject: Re: multiple submit - possible workaround advice
- From: Paul Lynch <email@hidden>
- Date: Tue, 25 Apr 2006 22:03:59 +0100
On 25 Apr 2006, at 21:40, Robert Walker wrote:
I would have to disagree to a degree here (as I try to remember
back to my pre-WO days). You can put as many submit buttons as
you want in a standard HTML form, but the form can only submit to
one URL. Each submit button can have a different value that is
submitted along with the rest of the form values, so you can tell
which submit button was pressed. Behind the scenes, this is what
WO is doing when you tell it the form has multiple submit
buttons. The only thing that's not really defined, but seems to
be the case, is that the first submit button is the one called
when Enter is pressed within a text field in the form. I think
the only way to be absolutely certain of the behavior would be to
implement the previously mentioned javascript solution.
I could be mistaken, but don't you have to use some other type of
button besides "submit" to have multiple buttons in a "non-WO" HTML
form? I know that if you do not set "multiple-submit" in your
WOForm and have multiple submit buttons, clicking any button with
the mouse (other than the first one I think) will not function.
Your action does not get called. I always understood this as a
limitation of HTML forms containing multiple "submit" buttons.
IIRC, and depending on your choice of browser, without multiple
submit, all buttons of any nature submit the default action, which is
the action of the first in form. I believe that html forms work the
way Mark described.
My favourite submit button related glitch is when you use a button
inside a repetition, and your web designer set an id or name tag (one
or the other, I forget which) for the button, causing WO to treat
them all the same as if the first button in the repetition was clicked.
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden