I want to call the webservice until i get the desired Output. This is the code i am using.
$.ajax(
{
type: "POST",
url: "../WebService/myservice.asmx/GetStatus",
data: "{'myparameter': '" + value + "'}",
contentType: "application/json;charset=utf-8",
dataType: "json",
async: true,
cache: false,
success: function (response) {
return response.d;
},
error: function (x, e) {
alert("The call to the server side failed. " + x.responseText);
}
});
This webservice will return me the result. i want that until the result is completed the jquery call should execute every 1 sec.