I get "function not defined" using setInterval with jQuery. Why?
<p>I am trying to update a users field by using jQuery.</p>

<p>My code is...</p>

<pre><code>  jQuery(document).ready(function(){
  setInterval("imStillAlive()", 6000);
    function imStillAlive() {

      jQuery.post('/users/update_useractive',
     function(data){
    alert("updated");
     });//post
   }
    });
</code></pre>

<p>The above code when ran shows the error...</p>

<blockquote>
  <p>"imStillAlive" not defined</p>
</blockquote>

<p>How to resolve this?</p>
