What's wrong with my jQuery
<p>I'm trying to periodically refresh a .Net view.
I get <strong>Missing ] after element list error</strong>
Here's my code</p>

<pre><code>&lt;script type="text/javascript"&gt;

$(document).ready(function () {
    window.setInterval(loadRings(), 5000);
});
    function loadRings() {
    $.ajax({
            url: "Rings/Index",
            context: document.body,
            success: function (msg) {
                $("#ajaxDiv").html(msg);
            }
        });
    }
</code></pre>

<p></p>

<p>Any idea what's going on?</p>

<p><strong>UPDATE:</strong>
The setInterval should be </p>

<blockquote>
  <p>window.setInterval(loadRings, 5000);</p>
</blockquote>
