I've been looking into the google closure library for ajax calls, and I've gone through an example that looks like:
goog.events.listen(request, "complete", function(){
if (request.isSuccess()) {
// do something cool
} else {
// display an apologize message
}
});
As opposed to a jquery example that looks something like:
$.ajax({url: url, success: function () { }, error: function () { }});
I've been seeing google closure popup a lot more, but what would be the advantage or disadvantage in this case? The jquery library calls just seem a lot simpler for ajax related calls like this one.