Skip to content

Instantly share code, notes, and snippets.

@richardbenson
Created April 20, 2010 13:26
Show Gist options
  • Save richardbenson/372432 to your computer and use it in GitHub Desktop.
Save richardbenson/372432 to your computer and use it in GitHub Desktop.
function getFile() {
var postData = "foo=bar&this=that";
var request = YAHOO.util.Connect.asyncRequest('POST', 'script.php', getFileCallback, postData);
}
getFileCallback = {
success: function(o) {
panel.setBody(o.responseText);
},
failure: function(o) {
alert("Failed");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment