Created
April 21, 2016 16:52
-
-
Save csessig86/1279b95a02cd171152d53f269e7a3647 to your computer and use it in GitHub Desktop.
Making two AJAX calls
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 global_data = {}; | |
$.ajax({ | |
type: "GET", | |
dataType: "json", | |
url: 'https://datagetter.herokuapp.com/arrests.json', | |
success: function(data){ | |
global_data = data; | |
}, | |
complete: function() { | |
console.log(global_data); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment