Can anybody explain what is the best way to update latest post automatically in the page?
<p>Can anybody explain what is the best way to update latest post automatically in the page ?</p>

<pre><code>(Newly added posts will just prepend to the old wall posts)
</code></pre>

<p>And</p>

<pre><code> (The number which tells number of newly added posts. 
Number should be displayed in the top of the wall.)
</code></pre>

<p>Like <code>twitter</code> and <code>facebook</code>, they update wall in each interval  .</p>

<p>What is the technique they use ?</p>

<p>(I know i can set up the timeInterval in JS. But I need to send a request to server only if any new post added to the system.)</p>

<pre><code>(Using cron or something we can just go and hit the client ?.
 In phone there is a method called "PUSH". )
</code></pre>
