do it now.
i already open the link u guys give to me 2 days ago (https://stackoverflow.com/questions/16026942/how-do-i-chain-three-asynchronous-calls-using-jquery-promises)
If i am not wrong this is how i can do it right ?
function first() {
*my ajax here*
return $.ajax(...);
}
function second(data, textStatus, jqXHR) {
*my second ajax here*
return $.ajax(...);
}
function third(data, textStatus, jqXHR) {
*my third ajax here*
return $.ajax(...);
}
function main() {
first().then(second).then(third);
}
Are you basically looking to do this? https://jsfiddle.net/drtech/72977x42/
Обсуждают сегодня