| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class contains functions for XMLHTTP requests.
| Method Summary | |
boolean
|
get(props)
This function is used to generate a "GET" request using the XMLHTTP request object (XHR) the underlying protocol. |
boolean
|
post(props)
This function is used to generate a "POST" request using the XMLHTTP request object (XHR) the underlying protocol. |
| Method Detail |
boolean get(props)
Object props
- Key-Value pairs of properties.
boolean props.async
- Flag indicating request should asynchronous (default).
String props.content
- Optional postable string or DOM object data.
Object props.headers
- Key-Value pairs of request header properties.
Function props.onError
- The callback function called in an error case.
Note: XMLHttpRequest or ActiveXObject will be provided as an argument.
Function props.onReady
- The callback function called on a successful response.
Note: XMLHttpRequest or ActiveXObject will be provided as an argument.
String props.url
- The URL may be either a complete or relative URL.
boolean true if successful; otherwise, false.
boolean post(props)
Object props
- Key-Value pairs of properties.
boolean props.async
- Flag indicating request should asynchronous (default).
String props.content
- Optional postable string or DOM object data.
Object props.headers
- Key-Value pairs of request header properties.
Function props.onError
- The callback function called in an error case.
Note: XMLHttpRequest or ActiveXObject will be provided as an argument.
Function props.onReady
- The callback function called on a successful response.
Note: XMLHttpRequest or ActiveXObject will be provided as an argument.
String props.url
- The URL may be either a complete or relative URL.
boolean true if successful; otherwise, false.