Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.

Dave Hulbert

Member since Apr 23, 2010

Recent Blog Comments By Dave Hulbert

  • Binding Events To Non-DOM Objects With jQuery

    Posted on Apr 23, 2010 at 9:10 AM

    @Ben, great post - just what I was looking for. @Jon, works for me (in Firefox): function User(name) { var my_name = name; this.get_name= function() { $(this).trigger('got_name', my_name); return my_name; }; } d = new User('dave'); $(d).bind('got_name', function(e, d){a... read more »