title: block UI not working
body: <p>why this code not working? 
  I set cookie when download a file into fileDownloadToken. and check it if not null then exec finishdownload ... </p>
  
  <pre><code>   &lt;script type="text/javascript"&gt;
      var fileDownloadCheckTimer;
      function blockUIForDownload() {
          if (IsCookiesEnable()) {
              var token = new Date().getTime(); //use the current timestamp as the token value
              $('#token').val(token);
              $.blockUI{ message: '', fadeIn: 0 };);
              fileDownloadCheckTimer = window.setInterval(function () {
                  var cookieValue = $.cookie('fileDownloadToken');
                 // alert(cookieValue);
                  if (cookieValue != null)
                      finishDownload();
              }, 1000);
          }
      }
  
      function IsCookiesEnable() {
          var cookieEnabled = (navigator.cookieEnabled) ? true : false;
  
          if (typeof navigator.cookieEnabled == "undefined" &amp;&amp; !cookieEnabled) {
              document.cookie = "testcookie";
              cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? true : false;
          }
          return (cookieEnabled);
      }
  
      function finishDownload() {
          //window.clearInterval(fileDownloadCheckTimer);
          $.cookie('fileDownloadToken', null);
          $.unblockUI();
      }
  </code></pre>
  
  <p>  </p>