использовать jquery deferreds для переменного числа запросов ajax
когда у меня есть переменное число запросов AJAX, как я могу вызвать их с помощью отложенных?
моя догадка:
//qty_of_gets = 3;
function getHTML(productID, qty_of_gets){
var dfd = $.Deferred(),
i = 0,
c = 0;
//this is where there could be some magic to
//do multiple ajax posts
//obviously I'm out of my depth here...
while (i