title: jQuery ajax isnt working?
body: <p>Can anyone see why this jQuery ajax isn't working?  It's supposed to run every second, but it isn't running at all.</p>
  
  <p>Source code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var auto_refresh = setInterval(
  function ()
  {
  
  var ID = $(this).attr("id");
  if(ID)
  {
  $("#more"+ID).html('&lt;img src="moreajax.gif" /&gt;');
  
  $.ajax({
  type: "POST",
  url: "ajax_more.php",
  data: "lastmsg="+ ID, 
  cache: false,
  success: function(html){
  $("ol#updates").prepend(html);
  $("#more"+ID).remove();
  }
  });
  }
  else
  {
  
  }
  
  
  return false;
  
  }, 10000);
  </code></pre>