Created
May 8, 2017 02:19
-
-
Save mizzoudavis/7a8729c7b2e9006946427dac3c4b945b to your computer and use it in GitHub Desktop.
This file contains 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
$(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