Dojo Goodness, Part 4 (Easy AJAX)

Matthew Russel continues his series of af articlee about Dojo JavaScript library. In the article, that he posted today he shows how ro use the AJAX functionality of Dojo library. Here's the one of examples from this article:

JavaScript

dojo.xhrGet({
url : "localresource.json",
handleAs : "json",
load : function(response, ioArgs) {
/* Handle a successful callback here */
},
error : function(response, ioArgs) {
/* Handle any errors that occur here */
}
});

You can read the full version of this article with other examples on ONLamp site.