Skip to content

Instantly share code, notes, and snippets.

@kitmenke
Created July 5, 2012 21:59
Show Gist options
  • Save kitmenke/3056750 to your computer and use it in GitHub Desktop.
Save kitmenke/3056750 to your computer and use it in GitHub Desktop.
Example AJAX call
$.ajax({
'url': '/_vti_bin/EHI/Users.svc/json/GetCurrentUser',
'dataType': 'json',
'type': 'GET',
'success': function(data) {
self.currentUser(new Employee(data.d));
},
'error': function() {
console.log("Error getting current user.");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment