title: Problem with setInterval to call function
body: <p>I'm trying to get a simple script to work, but somewhere I must have done something wrong because it's not working! I just want to set an interval timing that call a function. Preciate some help. Perhaps not the best solution, but I'm new to this.</p>
  
  <pre><code>$(document).ready(function() {
  
  startInterval(); // activate timer
  
  function startInterval() {
  var t = setInterval("autoSave", 20000);
  }
  
  function autoSave() {
  alert("test");
  }
  
  });
  </code></pre>