Skip to content

Instantly share code, notes, and snippets.

@mizzoudavis
Created May 8, 2017 02:19
Show Gist options
  • Save mizzoudavis/7a8729c7b2e9006946427dac3c4b945b to your computer and use it in GitHub Desktop.
Save mizzoudavis/7a8729c7b2e9006946427dac3c4b945b to your computer and use it in GitHub Desktop.
$(document).ready(ajaxCalls);
function ajaxCalls(){
$.each(ArrayToIterate, function(i)
function AjaxA (callback){
//performs/returns Ajax Call
}
function AjaxB (callback){
//performs/returns Ajax Call
}
function AjaxC (callback){
//performs/returns Ajax Call
}
$(function() {
$.when(AjaxA(), AjaxB(), AjaxC())
.then(function(a,b,c){
//do the iterative things;
})
})
});
function drawChart(){
//steps to draw a chart;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment