Created
July 5, 2012 21:59
-
-
Save kitmenke/3056750 to your computer and use it in GitHub Desktop.
Example AJAX call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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