title: Jquery load data to div with settimeout
body: <p>I was wondering how I can load data every 10 seconds to the specified div '#load' without having to do the whole window.settimeout.</p>
  
  <pre><code>function load_data() {
    $(function() {
      var timer = 10000;
  
      $.ajax({
          type: 'POST',
          url: 'ajax.php',
          dataType: 'html',
          data: strData,
          success: function(data) {
              $('#load').html(data);
              window.setTimeout("load_data()", timer);
          }
      });
   }); }
  </code></pre>
  
  <p>Thanks in advance!</p>