Javascript: setInterval function not working
<p>I have the following piece of code. Interval  is set to 10sec.</p>

<pre><code>(function($){ 
    $(document).ready(function() { 
        disp_log(); 
        setInterval(function () {
            disp_log();
        }, 10 * 1000);

        function disp_log() { 
            $.ajax({ 
                "type" : "GET", 
                "url" : "/get_log/", 
                "dataType" : "json", 
                "cache" : false, 
                "success" : function(json) { 
                    data=""
                    for(var j = 0; j &lt; json.length; j++) { 
                        data+="&lt;tr&gt;&lt;td&gt;"+json[j]+"&lt;/td&gt;&lt;/tr&gt;"
                    } 
                    $("#log").html(data);
                } 
            })(jQuery); 
        }
    }); 
})(django.jQuery); 
</code></pre>

<p>But refreshing dosen't happen. Can someone plz tell why?</p>
