defaults: (all 'arguments' are optional)
| arg |
default |
description |
| url |
location.href |
url to load/save |
| verb |
GET |
for using POST, HEAD, etc. not needed for PUT or GET |
| type |
"text/html" |
sets request format mime type. over-ride if using XML or POST. |
| data |
null |
for PUT and POST, the raw data to be sent to the server. |
| cachedOK |
false |
allow caching? (vastly speeds loading for files you don't expect to change) |
| good |
null |
success callback -argument passed is data, this is the XHR object |
| bad |
null |
failure callback - this is the XHR object |
| done |
null |
completion callback -argument passed is data, this is the XHR object |