title: From a running PHP Code, how to update status in DIV tag
body: <p>I have a web Page, in which i an downloading data one after another in a loop. After each data download is finished i want to update the status to a DIV tag in the Web Page. How can i do this. Connecting to server and downloading data via php  code and the div tag is within the .phtml page.</p>
  
  <p>i have tried  </p>
  
  <pre><code>echo "
              &lt;script type=\"text/javascript\"&gt;
              $('#tstData').show();
              &lt;/script&gt;
              ";
  </code></pre>
  
  <p>But the echo statement update will happen at the end only. Refreshing of DIV tag need to happen at the end of each download.</p>