Skip to content

Instantly share code, notes, and snippets.

@paulallies
Created September 11, 2011 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulallies/1209482 to your computer and use it in GitHub Desktop.
Save paulallies/1209482 to your computer and use it in GitHub Desktop.
Ajax Posr
var cfg = {
method: 'POST',
data: '{"clientname": "Test"}',
headers: { 'Content-Type': 'application/json' },
on: { success: function (id, o, args) {
Y.log('Success');
},
failure: function () {
Y.log('Post Error');
}
}
};
var request = Y.io('/ControllerName/Actionname', cfg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment