Methods
# (static) ajax(opts) → {XMLHttpRequest}
Handles asynchronous HTTP requests.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | The options for the request
Properties
|
- Tutorials:
Returns:
The corresponding XMLHttpRequest object
- Type
- XMLHttpRequest
# (static) get(url, opts) → {XMLHttpRequest}
Handles asynchronous GET requests.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string | The url for the request | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
opts |
object | The options for the request
Properties
|
- Tutorials:
Returns:
The corresponding XMLHttpRequest object
- Type
- XMLHttpRequest
# (static) post(url, opts) → {XMLHttpRequest}
Handles asynchronous POST requests.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string | The url for the request | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
opts |
object | The options for the request
Properties
|
- Tutorials:
Returns:
The corresponding XMLHttpRequest object
- Type
- XMLHttpRequest