12-05-2019, 07:58 AM
(This post was last modified: 12-06-2019, 12:15 AM by Alexandre Machado.)
(10-09-2019, 02:43 PM)kudzu Wrote: In the JS world this is normal. They use Promises and other async mechanisms to deal with it on the client side.
He is not using promises, nor chained callback calls. In that example he just fires 2 Ajax calls in sequence and "hopes" that the first response is available and fully processed before the second one is sent. This will never happen in any JS library/code.