[jQuery] Re: click() on submit button doesn't trigger form's jquery submit handler

2008-07-22 Thread Roland Schaer
I have a similar problem where i want to submit a AJAX form through its button click event because the AJAX onclick handler is added dynamically through RichFaces. I have two different forms and tried to define a keypress handler for my input fields as follows -- jQuery(".search input:text").keypr

[jQuery] Re: click() on submit button doesn't trigger form's jquery submit handler

2008-07-22 Thread Will Moffat
Hi guys, thanks for the replies, and sorry for the delay in responding. I see that didn't clearly state the context of my problem. I want to use jQuery to simulate mouse clicks for many different HTML elements (not just form submit buttons). My test shows that jQuery.click() doesn't give same re

[jQuery] Re: click() on submit button doesn't trigger form's jquery submit handler

2008-07-09 Thread Mike Alsup
> I expected that calling click() on a submit button would trigger a > form's submit handler, but this doesn't seem to be the case. > > Example: register a jQuery submit handler: > $('form').submit(function() { alert('jquery submit handler'); }); > > Then click the corresponding submit button: > $

[jQuery] Re: click() on submit button doesn't trigger form's jquery submit handler

2008-07-09 Thread mickbw
Will, When I clicked on the button I saw two alert boxes. I did this in IE and Firefox. Was the the result you wanted? On Jul 9, 4:46 am, Will Moffat <[EMAIL PROTECTED]> wrote: > I expected that calling click() on a submit button would trigger a > form's submit handler, but this doesn't seem t

[jQuery] Re: click() on submit button doesn't trigger form's jquery submit handler

2008-07-09 Thread Alexandre Plennevaux
On Wed, Jul 9, 2008 at 10:46 AM, Will Moffat <[EMAIL PROTECTED]> wrote: > > I expected that calling click() on a submit button would trigger a > form's submit handler, but this doesn't seem to be the case. > > Example: register a jQuery submit handler: > $('form').submit(function() { alert('jquery