Ajax Requests Chaining/Nesting?
<p>I'm writing a script that uses Ajax. The script will call an API, and then use that data to call the API again, and then based on that a final request to the API a third time.</p>

<p>Currently the Ajax requests are chained, so if response status is 200, it will perform the other Ajax request and if that one is 200 it will do another. So basically nested requests.</p>

<p>They are asynchronous requests. Is this the correct way to do this? I cant help but think its a little messy, and wrong.</p>
