javascript: How to repeatedly call the function itself?
<p>I want to repeatedly count time and update the current time every one minute. My code doesn't work. Firebug console says the final line function <code>getStatus()</code> is not defined. How to call this function repeatedly?</p>

<pre><code>jQuery(document).ready(function($){

    $(function() {   
     getStatus();
    });

    function getStatus() {
      var post_id = $('#post_id').val();
      var nonce = $('#_wpnonce').val();
      jQuery.ajax({
        url : ajaxurl,
        data : {action: "update_edit_lock", post_id : post_id, nonce: nonce },
        success: function(response) {
          if(response == "false") {
            alert("failed")
          }
          else {
            $("#message").html(response)
          }
        }
        });
      setTimeout("getStatus()",60000);
    }
    },(jQuery));
</code></pre>
