For running plugins (things not event handler based) you can still use the .livequery()
plugin, like this:
$('.selector').livequery(function() {
$(this).timeago();
});
If it's an event handler, .live()
or .delegate()
works, or if it's a plugin you can also run the plugins on loaded content, for example:
$.ajax({
//options...
success: function(data) {
//do stuff
$('.selector', data).timeago();
}
});
This runs the plugin on that selector, but only for elements that came back in that AJAX response, by using the context argument of $(selector, [context])
.