Created
June 12, 2013 16:07
-
-
Save abachuk/5766736 to your computer and use it in GitHub Desktop.
jquery deferred
This file contains hidden or 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
var dfd = $.Deferred(); | |
var endpoint = $.ajax({ | |
url: 'http://yourdomain.com/data.json', | |
sucess: dfd.resolve | |
}); | |
endpoint.success(function(data){console.log(data)}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment