Hierarchy

  • AjaxOptions

Properties

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

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.

headers?: null | IDictionary<string, string> | ((this: IAjax<any>) => CanPromise<null | IDictionary<string, 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

method?: string

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

onProgress?: ((percentage: number) => void)

Type declaration

    • (percentage: number): void
    • Parameters

      • percentage: number

      Returns void

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

Type declaration

    • (this: IAjax<any>, obj: string | FormData | IDictionary<string | object, string>, prefix?: string): string | FormData
    • Parameters

      • this: IAjax<any>
      • obj: string | FormData | IDictionary<string | object, string>
      • Optional prefix: string

      Returns string | FormData

responseType?: XMLHttpRequestResponseType
successStatuses: number[]
url?: string

A string containing the URL which the request is sent.

withCredentials?: boolean

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

xhr?: (() => XMLHttpRequest)

Type declaration

    • (): XMLHttpRequest
    • Returns XMLHttpRequest

Jodit PRO

If you like Jodit - try Jodit PRO