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.
19 lines
464 B
19 lines
464 B
function createRequestObject() {
|
|
var ro;
|
|
var browser = navigator.appName;
|
|
if(browser == "Microsoft Internet Explorer"){
|
|
ro = new ActiveXObject("Microsoft.XMLHTTP");
|
|
}else{
|
|
ro = new XMLHttpRequest();
|
|
}
|
|
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);
|
|
}
|