Skip to content

Instantly share code, notes, and snippets.

@miraglia
Created September 1, 2010 04:22
Show Gist options
  • Save miraglia/560219 to your computer and use it in GitHub Desktop.
Save miraglia/560219 to your computer and use it in GitHub Desktop.
// Define a function to handle the response data.
function complete(id, o, args) {
var id = id; // Transaction ID.
var data = o.responseText; // Response data.
};
//subscribe to the complete event
Y.on('io:complete', complete, Y);
// Make an HTTP request to 'get.php'.
var request = Y.io(uri);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment