Skip to content

Instantly share code, notes, and snippets.

@jdcauley
Created June 8, 2016 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdcauley/082c73e0722d09890891b014a3965b3e to your computer and use it in GitHub Desktop.
Save jdcauley/082c73e0722d09890891b014a3965b3e to your computer and use it in GitHub Desktop.
cardinal-ajax
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