618 Part IV: Appendixes
OptionDescriptionDefaultExampletransport : "xhr" | "iframe" | "script" | "image"Transport to make the request with. By default, this will be XHR though you can change it on a per request basis. The global transport can be set withsetDefault("DEFAULT_XHR_TRANSPORT_VALUE",value)
, wherevalueis one of the defined strings. Thetransport choice may change a request depending on the capabilities of the transport indicated. For example, image and script transports will not accept a POST request and will convert it into a GET if possible."xhr" transport : "script"transportIndicator : BooleanIndicates if Ajax-indicating headers such as X-Requested-By: XHRshould be included.Normally defined by valueAjaxTCR.comm.DEFAULT_TRANSPORT_INDICATOR.Setting as an option affects only the request made; use the general getter/setter AjaxTCR.comm.setDefault("DEFAULT_TRANSPORT_INDICATOR", false);tochange it for all requests.true transportIndicator : falseuseRaw: BooleanBy default this is set totrueand isconsulted whenoutputTargetis set. Ifset tofalse, the response’s payload willnot be directly put into theoutputTarget,forcing you to manually perform any decode and placement.true useRaw : falseusername: stringUsed to specify the username for HTTP authentication challenges issued to a request. Only usable with an XHR transport."" username: "koenig"userVars : string | number | Boolean | array | objectValue attached to the request/response object that may contain any form of user-defined data.undefined userVars : {numDogs : 2, dogNames ["Angus", "Tucker"]
}userVars : "I love JavaScript"TABLEC-2Options Object Properties for Making Requests (continued)