> John is always in to leave some undocumented stuff
> in the code. I took a look at trigger and noticed a
> second parameter. Actually, something like this could
> be possible:
>
> $('a.remote')
> .bind('history', function(event, data) {
> // data == click event
> })
> .click(function(e) {
> $(this).trigger('history', e);
> ...
> });
I just used this earlier today for the first time. You pass an array of
additional args to the trigger event like this:
$(...).trigger('mouseover', [ "hello", 5 ]);
When your event handler gets the triggered event, the first arg will be the
event object, the second will be "hello", and the third will be 5.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/