title: PHP output buffering Loop and Jquery Ajax
body: <p>I was reading a lot of things about comet programming but I'm thinking if this implementation could be possible.</p>
  
  <p>this is my jscript</p>
  
  <pre><code>$.ajax({
     url:"mypage.php",
     onProgress:{function(rsp){ //i know there is no such function like this
       $("#mydiv").append(rsp+"&lt;br&gt;");
     }}
  });
  </code></pre>
  
  <p>and this is my mypage.php</p>
  
  <pre><code>&lt;?php
      while(true){
      ob_start();
        echo time();
      ob_flush();
      }
      ?&gt;
  </code></pre>
  
  <p>now what i want is my ajax request would fetch results during progress. Is this possible?</p>