title: Auto-refreshing div with jQuery - setTimeout or another method?
body: <p>How exactly do you make an auto-refreshing <code>div</code> with JavaScript (specifically, jQuery)?</p>
  
  <p>I know about the <code>setTimeout</code> method, but is it really a good practice ? Is there a better method?</p>
  
  <pre><code>function update() {
      $.get("response.php", function(data) {
          $("#some_div").html(data);
      });
      window.setTimeout("update();", 10000);
  }
  </code></pre>