There was a question about how to make the processbar during file generation. I tried this:
$("#download-button").click(function () { var req = getXHR(); req.open('GET', '/Home/DownloadImage', true); req.onreadystatechange = function (aEvt) { if (req.readyState == 4 && req.status == 200) { $('#progressMsg').hide(); } }; $('#progressMsg').show(); req.send(null); });
In Chrome
and IE
everything works fine, but does not work in FireFox
.
More specifically: all the time it shows that req.status = 0
; while in Chrome
= 200;