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 responsestring The response from the AJAX call
documentAJAXDocument The document nodes resulting from this call.
argumentsarray The arguments array originally passed to the AJAX.ajaxGet method
linkTargetDOMElement 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 docDOMElement The full document node for the AJAX GET result
subdocNodeList 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 resolverAJAXGetResolver 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 errorobject The error that occurred
argsarray The arguments that were passed to the request
targetLinkDOMElement <optional>
The link that spawned the ajax request
-
AJAXDocument
-
Type:
- Object
Properties:
Name Type Description docDOMElement The full document node for the AJAX GET result
subdocNodeList The subdocument derived from the main document