title: Content reloading after x seconds
body: <p>In my index page, there is a div box that shows the last posts on a forum. 
  I want it to be reloaded every 10 seconds.</p>
  
  <pre><code>$(document).ready(function(){
       while(1==1)
       {
          $("#lastPosts").delay(10000).load("showLastPosts.php");
       }
  });
  </code></pre>
  
  <p>Is this a good idea? Is there a better approach?</p>