title: IE is not refresh after call the download function
body: <p>In the jsp, I use javascript, jquery and json to call a function for download, once the the download is finished, it will return the the current page.</p>
  
  <p>However the problem is although the download is complete, I can able to download and view the file. In the screen, it still show the message indicate it is downloading.</p>
  
  <p>I read this <a href="https://stackoverflow.com/questions/3426510/problem-with-ie-and-setinterval-not-refreshing-updating">post</a>, the accepted solution mentioned to disable the cache with ajaxSetup. I read my code, I have already include it in the code, however the Internet Explorer still not return to proper page when the download finished. Is there any method I can use to solve the problem. Thank you.     </p>
  
  <pre><code>function startDownload() {
      $.blockUI({ message: '&lt;h1&gt;Downloading, please wait...&lt;/h1&gt;' });  
      var i = setInterval(function() { 
          $.ajaxSetup({ cache: false }); 
          $.getJSON("ThePage/downloadProgress?jsoncallback=?",function(download_token) {
          if (download_token.fileDownloadToken == "finished" ) { 
              $.unblockUI(); 
              clearInterval(i);           
          } 
          });  
      }, 1000);  
  }
  </code></pre>
  
  <p><strong>Update</strong>
  I mentioned it occurs on IE because our company is mainly using IE for the web browser. So I intend to make to code works on the IE first. Sorry for the inconvenience that I have made.</p>