AjaxOptions

types.AjaxOptions

successStatuses

successStatuses: number[]

Defined in

src/types/ajax.d.ts#48


method

Optional method: string

The HTTP method to use for the request
(e.g. "POST", "GET", "PUT")

Defined in

src/types/ajax.d.ts#54


url

Optional url: string

A string containing the URL which the request is sent.

Defined in

src/types/ajax.d.ts#59


data

data: DataVariant

Data be sent to the server.
It is converted to a query string, if not already a string. It's appended to the url for GET-requests.

Defined in

src/types/ajax.d.ts#65


contentType

Optional contentType: string | false

When sending data to the server, use this content type. Default is "application/x-www-form-urlencoded;
charset=UTF-8", which is fine for most cases

Defined in

src/types/ajax.d.ts#71


headers

Optional headers: null | IDictionary<string> | (this: IAjax<any>) => CanPromise<null | IDictionary<string>>

An object (or a function which returns an object) of additional header key/value pairs to send along
with requests using the XMLHttpRequest transport. Uses in FileBrowser
and Uploader

Defined in

src/types/ajax.d.ts#78


responseType

Optional responseType: XMLHttpRequestResponseType

Defined in

src/types/ajax.d.ts#83


withCredentials

Optional withCredentials: boolean

Enable or disable Access-Control-Allow-Credentials client side. Useful for cross domain requests

Defined in

src/types/ajax.d.ts#88


queryBuild

Optional queryBuild: (this: IAjax<any>, obj: string | FormData | IDictionary<string | object>, prefix?: string) => string | FormData

Type declaration

(this, obj, prefix?): string | FormData

Parameters
Name Type
this IAjax<any>
obj string | FormData | IDictionary<string | object>
prefix? string
Returns

string | FormData

Defined in

src/types/ajax.d.ts#90


xhr

Optional xhr: () => XMLHttpRequest

Type declaration

(): XMLHttpRequest

Returns

XMLHttpRequest

Defined in

src/types/ajax.d.ts#96


onProgress

Optional onProgress: (percentage: number) => void

Type declaration

(percentage): void

Parameters
Name Type
percentage number
Returns

void

Defined in

jodit/src/types/ajax.d.ts:98