jQuery setInterval isn't working
<p>Here is my code:</p>

<pre><code>$(document).ready(function() {
    var interval = setInterval("change_height()", 500);
    var height;

    function change_height() {
        height = parseInt(window.location.hash);
        $('#message_body').height(height);
        alert("");
        clearInterval(interval);
    }
});
</code></pre>

<p>for some reason the change_height() function just isn't being called yet it works if I put it outside the document.ready block but then the clearInterval doesn't work!</p>

<p>Any help much appreciated.</p>

<p>Thanks</p>
