How to keep on calling Jquery on Success
<p>I want to call the webservice until i get the desired Output.
This is the code i am using.</p>

<pre><code>$.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);
                }
});
</code></pre>

<p>This webservice will return me the result. i want that until the result is completed the jquery call should execute every 1 sec.</p>
