tags:

views:

11

answers:

1

Hello,
I Jquery, one can attach/register an event for dynamic content( which loaded later, through ajax) through live() method. Is there anything similar in YUI

thanks.

+1  A: 

Yes. live() is basically one approach for event delegation. YUI has the delegate method for this purpose: http://developer.yahoo.com/yui/3/event/#delegate

Luke
YUI 2 version: http://developer.yahoo.com/yui/docs/YAHOO.util.Event.html#method_delegate
Tivac