[jQuery] Re: Way to "convert" DOM event to jQuery event?

2009-09-22 Thread WalterGR
On Sep 22, 4:35 pm, Ricardo wrote: > This doesn't make any sense. If you're already using jQuery why keep > your handler in the HTML? Because I need to pass additional information to the event handler in a clean way. (i.e. rather than hacks using various attributes on the anchor.) Is there a

[jQuery] Re: Way to "convert" DOM event to jQuery event?

2009-09-22 Thread WalterGR
On Sep 22, 6:38 am, Liam Potter wrote: > or this > > show details > > $("a").click(function(){ >         var rel = $(this).attr('rel'); > > } > > now you have passed foobarbaz to jquery. This works only if I don't already need to use "rel". I feel like there _must_ be a better way... Certainly

[jQuery] Way to "convert" DOM event to jQuery event?

2009-09-22 Thread WalterGR
ed to send additional information ('foobarbaz' above) to the event handler. Thanks, WalterGR