Optional
callbackOptional
downloadSave the response as a file. Only works in browser environments.
When downloadFile is true, the download filename should be included in the response header (e.g. Content-Disposition: attachment; filename=data.xlsx
)
When downloadFile is a string, the download value will be used as the download filename.
The success or failure functions will still be called.
Optional
failureA function called when a failure response is received (determined by XHR readyState, status, or ontimeout if supplied). It will be passed the following arguments:
Optional
formFormData or Object consumable by FormData that can be used to POST key/value pairs of form information. For more information, see FormData documentation.
Optional
headersObject specifying additional HTTP headers to add the request.
Optional
initialOptional
jsonData provided to the XMLHttpRequest.send(data) function. If the request is method "POST" this is the body of the request.
Optional
methodHTTP request method used for the XMLHttpRequest. Examples are "GET", "PUSH, "DELETE", etc. Defaults to "GET" unless jsonData is supplied then the default is changed to "POST". For more information, see this HTTP request method documentation.
Optional
paramsAn object representing URL parameters that will be added to the URL. Note, that if the request is method "POST" and jsonData is not provided these params will be sent via the body of the request.
Optional
scopeA scope for the callback functions. Defaults to "this".
Optional
successA function called when a successful response is received (determined by XHR readyState and status). It will be passed the following arguments:
Optional
timeoutIf a non-null value is supplied then XMLHttpRequest.ontimeout will be hooked to failure.
The url used for the XMLHttpRequest. If you are making a request to the LabKey Server instance see buildURL for helpful URL construction.
A function called after any success/failure response is received. It will be passed the following arguments: