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.
28 lines
860 B
28 lines
860 B
window = domino.createWindow("", "http://127.0.0.1/");
|
|
document = window.document;
|
|
location = window.location;
|
|
XMLHttpRequest = function () {
|
|
console.log("XMLHttpRequest");
|
|
this.open = function (m, url) {
|
|
console.log("XMLHttpRequest.open");
|
|
this.m = m;
|
|
this.url = url;
|
|
this.onreadystatechange("", "", 0, 0)
|
|
};
|
|
this.send = function (data) {
|
|
this.onreadystatechange("", "", 1, 0);
|
|
this.onreadystatechange("", "", 2, 0);
|
|
this.onreadystatechange("", "", 3, 0);
|
|
var result = GO_AJAX(m, url, data);
|
|
result = JSON.parse(result);
|
|
this.onreadystatechange(result["data"], result["data"], 4, parseInt(result["code"]))
|
|
};
|
|
this.onreadystatechange = function (responseText, response, readyState, status) {
|
|
|
|
};
|
|
return this
|
|
};
|
|
|
|
navigator = {
|
|
"userAgent": ""
|
|
};
|