I am creating a web application and i have 4 webservice.
- Make Call
- Get Ringing Status
- Answered Status
- Hang Up
I want that when i execute the first webservice from jquery it should wait for the response and then check the another Webservice and get the status asynchronously.
Presently i am using .
function InfoByDate(){
var divToBeWorkedOn = "#AjaxPlaceHolder";
var webMethod = "http://MyWebService/Web.asmx/GetInfoByDates";
var parameters = "{}";
$.ajax({
type: "POST",
url: webMethod,
data: parameters,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
$(divToBeWorkedOn).html(msg.d);
},
error: function(e){
$(divToBeWorkedOn).html("Unavailable");
}
});
}
Can you suggest something.