auto-refreshing div with jquery
<p>how exactly do you make an auto-refreshing div with javascript (specifically, jQuery) ?
I knew about the setTimeout 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>

<p>Thanks before.</p>
