I understand the xhr.upload.onprogress event (file upload). Like this :
xhr.upload.onprogress = function(e) { // if (e.lengthComputable) ...
var percentUploaded = Math.floor(100 * e.loaded / e.total);
progressBarElem.value = percentUploaded;
messageAreaElem.innerHTML = percentUploaded + "% uploaded";
}
But what about the xhr.onprogress event, which is file download from the server ?
I can't find a simple example of this.
Patrick