Skip to content

Instantly share code, notes, and snippets.

@voodootikigod
Created November 10, 2009 17:38
Show Gist options
  • Save voodootikigod/231066 to your computer and use it in GitHub Desktop.
Save voodootikigod/231066 to your computer and use it in GitHub Desktop.
// dojo
dojo.io.bind({
url: "/dragons",
load: function(type, data, evt){ /*do something w/ the data */ }
mimetype: "text/json"
});
// jQuery
jQuery.get("/dragons", function(data, textStatus){
/*do something w/ the data */
}, "json");
// Prototype
new Ajax.Request('/dragons', {
onSuccess: function(response) {
/*do something w/ the data */
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment