[Javascript] selecting between multiple submit buttons
jm
jm5379 at gmail.com
Wed Jul 25 10:03:31 CDT 2007
i'll try to address both responses here...
first off, i already found the answer i was looking for, using the
onclick property inside the CDATA section, allowing me to define all
instances in a single location in the code.
yes, html does handle multiple submit buttons quite nicely, but only
after returning to the server to be processed. i wanted to perform
data verification prior to actually submitting the form back to the
server.
i probably was too terse with my description, leaving out important
details that might have helped others better understand the whole
context. my apologies, and thanks for the replies.
joe
On 7/25/07, Paul Novitski <paul at juniperwebcraft.com> wrote:
> At 7/22/2007 06:37 AM, jm wrote:
> >i have a form that uses multiple submit buttons: one to select from a
> >dropdown list of menu options, one to add a new record or update an
> >existing record depending on which is appropriate at the time, and one
> >to delete an existing record. i use the following as the trigger for
> >onsubmit
> ...
> >sadly, it doesn't know how to distinguish between which submit button
> >is being selected.
>
>
> Joe,
>
> You don't need JavaScript to solve this problem. HTML solved it from
> the beginning. When a form contains multiple submit buttons, the
> value of only the button clicked is passed in the POST or GET array.
>
> Regards,
>
> Paul
> __________________________
>
> Paul Novitski
> Juniper Webcraft Ltd.
> http://juniperwebcraft.com
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
--
since this is a gmail account, please verify the mailing list is
included in the reply to addresses
More information about the Javascript
mailing list