Constructor Detail
bbq.ajax.AJAXRequest(options)
Name | Type | Comment |
---|---|---|
options | {Object} | |
options.url | {String} | Where to send the request to. |
options.method Optional, Default: "post" |
{String} | "post" or "get". |
options.args Optional |
{Object} | key/value pairs. |
options.onSuccess Optional |
{Function} | Everything went as expected - eg. received HTTP 200. |
options.onFailure Optional |
{Function} | The call failed - eg. did not receive HTTP 200. |
options.onException Optional |
{Function} | An exception was thrown while attempting to make the call. |
options.postBody Optional |
{String} | A string to send as the body of the request. Subclasses will tend to use options.args over this value. |
options.headers Optional |
{Object} | A list of key/value pairs to send as request headers. |
options.contentType Optional |
{String} | The request content-type. |
- See:
- bbq.ajax.JSONRequest