John Resig schrieb:
>>> Is this the desired behavior?
>>>
>
> It is - it's already planned for 1.1. The ticket for it can be found here:
> http://jquery.com/dev/bugs/bug/134/
>
Quoting myself as posted in that bug ticket:
What happens when calling this?
$('#myform').trigger('submit');
Currently, events bound to the submit event are called, nothing else. If
the submit method of the form element itself is called, too, what
happens to those handlers? They aren't triggered by the programmatic
submit, so they can't prevent or handle the actual submit. And calling
the handlers first, the method second or otherway round won't solve that
problem, the association is simply lost.
And focus(), blur() and submit() (click and select, too?) have all in
common that there can be only one element at once, that is, you can
submit only one form, and focus or blur only one element. I don't see
what we gain by handling those with jQuery methods.
Therefore I propose to close this ticket as invalid.
The replies from Mike and Dave go in the same direction. It's good that
it came up on the list, discussion on the bug tracker doesn't work.
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/