1function sendData(url, params, doFunction) { 2 var xmlHttp; 3 if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari 4 xmlHttp = new XMLHttpRequest(); 5 } 6 else {// code for IE6, IE5 7 xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 8 } 9 10 xmlHttp.onreadystatechange = function () { 11 if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { 12 //do something 13 doFunction(xmlHttp.responseText); 14 15 } 16 else { 17 // not ready yet... 18 } 19 20 } 21 22 xmlHttp.open("POST", url + "?" + params + "&newts=" + new Date().getTime(), true); 23// xmlHttp.open("GET", url + "?" + params, true); 24 xmlHttp.send(); 25} 26 27function sendDataAsync(url, params, doFunction) { 28 $.ajax({ 29 type: 'GET', 30 url: url + "?" + params + "&newts=" + new Date().getTime(), 31 async: true, 32 cache: false, 33 success: function (res) { 34 doFunction(res); 35 }, 36 error: function (jqXHR, textStatus, errThrown) { 37 doFunction(textStatus); 38 } 39 }); 40}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.