1. At most one submit element is submitted in a form.
2. If you submit form without activating a particular submit element,
a form may be submitted with no submit elements sent to server.
3. If you do default submit, some browsers send submit element which
was defined first.
3. I don't know what is the rule for regular button elements, need to
read HTML specs.
4. The whole thing of yours seem too complicated.

I will be original not to suggest you to use my library ;) , but why
not to use LookupDispatchAction, for example? You get event from
submit button, and you can get combobox value in a separate parameter.

Michael.

On 9/23/05, Catherine <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am posting from roomity. Somehow my origainal post was truncated. Here is 
> my question.
>
> I have several buttons in my form.
>
> 1. <html:submit property="submitAction" value="Save">
>     This is fine, I get submitAction="Save" when action is invoked.
>
> 2. <html:button property="submitAction" value="Delete" 
> onclick="javascript:show('myAction.do?submitAction=Delete&.....')">
>     Function show(url) is defined as in my first post. I found that the 
> property is not submitted, so I have to append "submitAction=Delete" after 
> the action. So if I use javascript, what does the property field give me?
>
> 3. <html:button property="submitAction" value="Add Property" 
> onclick="javascript:checkProp()">
>     This is my real problem. I have a single selection dropdown menu which 
> contains the allowed properties of the object. When user selects a property 
> and clicks the Add Property button, I call checkProp() to check if it already 
> added to the object. If yes, I alert user and don't submit form; if no, I 
> call form.submit(). I found that submitAction="" if the form is submitted 
> this way. I tried to do form.submitAction.value = "Add Property" before 
> submit(), but that didn't help. How can I pass that value?
>
>
> Thanks,
> Catherine

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

Reply via email to