On Mar 30, 8:04 am, julio <antongiuli...@gmail.com> wrote:
> Hi,
>
> in my code I use typically something like this to catch events in DOM
> elements:
>
> $wnd.$(document).bind('click', function(event) {...}
> $wnd.$(document).bind('mouseover', function(event) {...}
> $wnd.$(document).bind('mouseout', function(event) {...}
> etc.
>
> is it possible instead catch a "generic" event and delegate externally
> management?
> For example:
>
> $wnd.$(document).bind(function(type, event) {
> // where type is a "string" for 'click' or 'mouseover', etc.
>
> }
>
> Thanks,
> Julio
Monday, March 30, 2009
[jQuery] Re: Catch "generic" events
Nope. You have to specify the type of event you want to bind.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment