title: recursive JQuery function with self triggering Ajax Request
body: <p>I have got a JQuery as:</p>
  
  <pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    $(document).ready(function (){
      $('#&lt;%=btnUpload.ClientID %&gt;').click(function NewRequest(){
          $.ajax({
              type: "POST",
              url: "../Admin/FileUpload.aspx/&lt;- Hear is [WebMethod, ScriptMethod]-&gt;",
              data: "{}",
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              async: true,
              cache: false,
              success: function GettingResponse(msg)
              {
                  if(msg = 'Upload Completed SuccessFully')
                  {
                      $('#myDiv').text(msg.d);
                  }
                  else
                  {
                      $('#myDiv').text(msg.d);
                      NewRequest();
                  }
              }
          })
          return false;
      });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>I want to call "GettingResponse" function Recursively,so that on each response from server I can show the client some text and then again Send a Request to server</p>
  
  <p>I don't know whats getting wrong as I dont Know Ajax and Jquery as well..
  any other solution to my requirment will also be good...</p>