Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var get1 = $.get(url1);
- var get2 = $.get(url2);
- $.when(getDetail, getExecutions).then(function(first, second) {
- // Success of get1 and get2
- // Do another request, based on the previous
- return $.get(first.LoadUrl);
- }, function(error){
- // Error of get1 or get2
- }).then(function (third) {
- // Success of 3rd reqest created in first success function
- }, function (error) {
- // Error of 3rd request created in first success function
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement