Iframe.readyState does not work in chrome

后端 未结 4 880
长情又很酷
长情又很酷 2020-11-30 08:17

I create an Iframe on the fly and set as the url a page that downloads a binary file (xls, doc...). While files are downloading I show an animation. When do

4条回答
  •  庸人自扰
    2020-11-30 08:58

    Please try this - you are really mixing dom and jQuery from line to line

    var tId;
    
    function stopAnim() {
        // I stop the animation and show the page
        animation.hide();
        progressBar.hide();
        $('#page').show();
        clearInterval(tId);
    }
    var iframe = $("