Created
June 8, 2016 18:13
-
-
Save jdcauley/082c73e0722d09890891b014a3965b3e to your computer and use it in GitHub Desktop.
cardinal-ajax
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 request = $.ajax({ | |
url: cardinal.apiURL + cardinal.namespace + '/campaign/', | |
cache: false, | |
crossDomain: true, | |
method: "GET", | |
dataType: "json" | |
}); | |
request.done(function( response ) { | |
cardinal.data = response; | |
for(var i = 0, x = units.length; i < x; i++){ | |
cardinal.populateUnit(units[i], i); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment