forked from paulvi/eclipse-node-ide
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathAJAX.js
More file actions
114 lines (112 loc) · 1.88 KB
/
AJAX.js
File metadata and controls
114 lines (112 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/**
@param {string} [sName]
@return {XMLHttpRequest}
*/
window.ActiveXObject = function(sName) {};
/**
@static
@type {number}
@const
*/
XMLHttpRequest.UNSENT = 0;
/**
@static
@type {number}
@const
*/
XMLHttpRequest.OPENED = 1;
/**
@static
@type {number}
@const
*/
XMLHttpRequest.HEADERS_RECEIVED = 2;
/**
@static
@type {number}
@const
*/
XMLHttpRequest.LOADING = 3;
/**
@static
@type {number}
@const
*/
XMLHttpRequest.DONE = 4;
/**
@type {Function}
*/
Object.defineProperty(XMLHttpRequest, "onreadystatechange", { set: function(value) {} });
/**
@type {number}
*/
XMLHttpRequest.prototype.readyState = 0;
/**
@type {string}
@const
*/
XMLHttpRequest.prototype.responseText = 0;
/**
@type {string}
@const
*/
XMLHttpRequest.prototype.statusText = 0;
/**
@type {number}
@const
*/
XMLHttpRequest.prototype.status = 0;
/**
@type {Document}
*/
XMLHttpRequest.prototype.responseXML = 0;
/**
@param {...Object} [options]
@constructor
*/
function XMLHttpRequest(options) {}
XMLHttpRequest.prototype.abort = function() {};
/**
@return {string}
*/
XMLHttpRequest.prototype.getAllResponseHeaders = function() {};
/**
@param {string} headerName
@return {string}
*/
XMLHttpRequest.prototype.getResponseHeader = function(headerName) {};
/**
@param {string} method
@param {string} url
@param {boolean} [async]
@param {string} [user]
@param {string} [password]
*/
XMLHttpRequest.prototype.open = function(method,url,async,user,password) {};
/**
@param {String|ArrayBuffer|Blob|Document|FormData} [data]
*/
XMLHttpRequest.prototype.send = function(data) {};
/**
@param {string} header
@param {string} value
*/
XMLHttpRequest.prototype.setRequestHeader = function(header,value) {};
/**
@static
@type {number}
@const
*/
XMLHttpRequestException.NETWORK_ERR = 101;
/**
@static
@type {number}
@const
*/
XMLHttpRequestException.ABORT_ERR = 102;
/**
@type {number}
@const
*/
XMLHttpRequestException.prototype.code = 0;
XMLHttpRequestException = {};