ReferenceError: Can't find variable error
<p>I have this code:</p>

<pre><code>$(document).ready(function(){
    var callPage = function(){
        $.post('/pageToCall.php');
    };

    setInterval('callPage()', 60000);
});
</code></pre>

<p>and it gives me the error <code>ReferenceError: Can't find variable: callPage</code>. Why?</p>
