Confused on setInterval()
<p>I use setInterval() to get the newest datas and draw something at set intervals.But in IE,it only works one time,I searched it in google,it says the cache of IE may be a problem,so I added a time stamp to my url like this:</p>

<pre><code>url+"?"+Math.random();
</code></pre>

<p>But it still doesn't work,or I made some mistakes?</p>

<p>I changed another way to write my function,the former codes are:</p>

<pre><code>$(document).ready(function()){
    autoRefreshFunction(some parameters){
        var interval=setInterval(
                         function(){
                             main function that gets data and draw
                         },time_interval);
    }
}
</code></pre>

<p>It only work one time in IE,but chrome is ok.</p>

<p>The new codes are:</p>

<pre><code>$(document).ready(function()){
    var interval=setInterval(
                     function(){
                         main function that gets data and draw
                     },time_interval);
}
</code></pre>

<p>It works in IE,so I am confused about the difference between this two method.</p>
