Global

Type Definitions


AJAXGetResolver

The resolving object. This is the object that is passed to AJAX GET promise thens and should be passed onto subsequent THENable calls.

Type:
  • Object
Properties:
Name Type Description
response string

The response from the AJAX call

document AJAXDocument

The document nodes resulting from this call.

arguments array

The arguments array originally passed to the AJAX.ajaxGet method

linkTarget DOMElement

The target element that fired the AJAX.ajaxGet


AJAXDocument

This is the output of all eventual AJAX calls. This object represents the result of the AJAX call and contains both the full HTML document and the selected subdoc.

Type:
  • Object
Properties:
Name Type Description
doc DOMElement

The full document node for the AJAX GET result

subdoc NodeList

The subdocument derived from the main document


loadResolve(resolver)

Callback for AJAX GET onload. This is called when the content is loaded.

Parameters:
Name Type Description
resolver AJAXGetResolver

The resolving object for the AJAX request

Returns:

The ongoing resolving object for the AJAX request

Type
AJAXGetResolver

loadReject(error, args [, targetLink])

Callback for AJAX GET error. This is called when an error occurs after calling an ajax GET.

Parameters:
Name Type Argument Description
error object

The error that occurred

args array

The arguments that were passed to the request

targetLink DOMElement <optional>

The link that spawned the ajax request


AJAXDocument

Type:
  • Object
Properties:
Name Type Description
doc DOMElement

The full document node for the AJAX GET result

subdoc NodeList

The subdocument derived from the main document