zerk.network.ajax Class
AJAX Interface
Crossbrowser container for the XMLHttpRequest object.
Methods
_createXMLHTTPObject
()
XMLHttpRequest
protected
Creates an environment specific XMLHttpRequest object
Returns:
XMLHttpRequest:
The XMLHttpRequest object
request
(
async
-
url
-
post
-
successHandler
-
errorHandler
Performs an AJAX request
Parameters:
-
url
StringTarget url
-
post
Booleantrue = POST
false = GET -
successHandler
FunctionEvent handler for success
-
errorHandler
FunctionEvent handler for error
Properties
_factories
Array
protected
List of different XMLHttpRequest vendor implemenations