Skip to content

Instantly share code, notes, and snippets.

@paulallies
Created August 31, 2011 20:50
Show Gist options
  • Save paulallies/1184679 to your computer and use it in GitHub Desktop.
Save paulallies/1184679 to your computer and use it in GitHub Desktop.
YUI3 Ajax GET
Y.io(uri, {
on: {
success: function (txnid, res) {
Y.one('#container').set('innerHTML', res.responseText);
},
failure: function (err, res) {
Y.log(res.status + ":" + res.statusText);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment