Namespace: ajax

qui.utils.ajax

Methods

(static) getPendingRequests() → {Array.<jqXHR>}

Return a list of currently pending requests

Source:
Returns:
Type
Array.<jqXHR>

(static) requestJSON(method, path, queryopt, dataopt, successopt, failureopt, headersopt, timeoutopt) → {jqXHR}

Perform an AJAX JSON HTTP request and decode response as JSON.

Parameters:
Name Type Attributes Description
method String

the HTTP method

path String

the path or a URL to request

query Object <optional>
data * <optional>

data to transmit in request body

success function <optional>

successful callback; will be called with decoded response and headers as parameters

failure function <optional>

failure callback; will be called with decoded response, status code, a result message and headers as parameters

headers Object <optional>

optional request headers

timeout Number <optional>

optional request timeout, in seconds

Source:
Returns:
Type
jqXHR