Hey Jeff, Sorry for the long delay in getting back to you on this. I just ran this code in Firebug on my blog and everything worked good.
$('h1').bind('mouseover', function(e) { $(this).trigger('myEvent'); }).bind('myEvent', function(e) { console.log(e.type); }); Make sure you are using the latest version of jQuery which is 1.1.3.1. If you can, post up an example page that exhibits the problem. Did you get a js error in your page? -- Brandon Aaron On 7/24/07, Jeff L <[EMAIL PROTECTED]> wrote:
Hi everyone, I'm trying to bind a custom event and then use trigger() to trigger it, but it's not working for me. Here's my code, does anyone see any issues? Currently it's logging 'mouseout' but not 'my Event' as I mouse over my table cells. $(o).mouseout( function(event) { console.log('mouseout'); $(event.target).trigger('myEvent'); }).bind("myEvent",function(event) { console.log('my Event'); }); Any help is appreciated!! Jeff