You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yacy_search_server/htroot/js/ajax.js

18 lines
438 B

function createRequestObject() {
var ro;
if (window.XMLHttpRequest) {
ro = new XMLHttpRequest();
} else if (window.ActiveXObject) {
ro = new ActiveXObject("Microsoft.XMLHTTP");
}
return ro;
}
var http = createRequestObject();
function sndReq(action) {
//http.open('get', 'rpc.php?action='+action);
http.open('get', action);
http.onreadystatechange = handleResponse;
http.send(null);
}