Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ajaxPromise.post("/bla") // creates and returns a promise
- .then(function(result) {
- // Handle result
- return ajaxPromise.get("/bli");
- })
- .then(function(result2) {
- // Handle result2
- return ajaxPromise.delete("/blo");
- })
- .then(function(result3) {
- // All done
- })
- .fail(function(err) {
- // If ANY of those promises fails, catch here
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement