ig.

xhr

Basic cross-browser XHR functionality. Only supports GET requests (for now).

Author:
  • Benno Daenen - github.com/bdaenen
Source:

<static> factories :Array

Array holding several XHR factories for cross-browser compatibility

Source:

<static> createObject()

Creates a new XHR object by calling a supported factory.

Source:
Returns:
XMLHttpRequest

<static> get()

Sends a GET XHR request.

Parameters:
Name Type Argument Description
options.url String Request URL
options.onSuccess function <optional>
Callback to execute when request has succeeded
options.onError function <optional>
Callback to execute when request has failed
options.onComplete function <optional>
Callback to execute when request has finished, successful or not
options.callbackParams Object <optional>
Parameters to pass to callback function
options.context Object <optional>
Context used for callback functions
Source: