take your code out of form.onsubmit and put it into onsubmit of the button attached to <input type="submit">, if there isnt one then attach one.
-igor On Wed, Nov 5, 2008 at 11:57 PM, Kaspar Fischer <[EMAIL PROTECTED]> wrote: > I have a form with an onSubmit(). The form contains a AjaxButton > with another onSubmit(). When the later gets called, the former gets > invoked, too. What I want, however, is that the form's onSubmit() > gets called iff the <input type="submit">-button is clicked, and that > the AjaxButton's onSubmit() is called iff the <input type="button">- > button is pressed. > > How can I achieve this? > > I tried calling setDefaultFormProcessing(false) on my AjaxButton, > but that does not update the form values (not what I want). I also > tried form.setDefaultButton(null) or form.setDefaultButton(submit), > which didn't help either. > > Thanks, > Kaspar > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
