xhr = new XMLHttpRequest(); xhr.onreadystatechange=function() { if (xhr.readyState==4 && xhr.status==200) { alert("success"); } } xhr.open("GET", "www.myserver.com/100kb.txt", false); xhr.responseType = "arraybuffer"; xhr.send();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)