XmlHttpRequestConnection Class
Creates an instance of XmlHttpRequestConnection object This connection class handles low-level implementation of XHR connection for generic (non-Microsoft) browsers
Constructor
XmlHttpRequestConnection
()
Item Index
Methods
- execute
- isCompatible static
Methods
execute
(
-
request
-
[requestEventHandlers]
-
callback
Basic request implemented via XHR technique
Parameters:
-
request
Requeststructure containing all needed params and data
-
[requestEventHandlers]
Object optionala set of callbacks to apply on a specific XHR event like onload, onerror, onprogress, etc.
-
callback
Functionfunction, which will be executed on request success
isCompatible
()
Boolean
static
Connection checks itself for compatibility with running environment
Returns:
Boolean:
whether the connection is compatible with current environment