DUEL › api › jlib › ajax
From Botdom Documentation
This is DUEL's core ajax component, it's built to easy the use of ajax for developers. Ajax is needed as a core part of DUEL.
Options
The options to Ajax are an array, the array is as follows:
- type: This is the method of request, either
GETorPOST.
Default: GET
- url: The url to send the request to.
Default: null
- contentType: This is the contentType header for the request.
Default:
application/x-www-form-urlencoded
- data: The data to send.
Default: null
- processData: Whether or not to process array data into a string.
Default: true
- onreadystatechange: This is the function to call when the readystate of the request changes.
Default: null
- headers These headers are to be sent with the request, must be in the form of an array.
Default: null

