Class AjxRpcRequest
Object
|
+--AjxRpcRequest
- class
AjxRpcRequest
This class represents an XML HTTP request, hiding differences between
browsers. The internal request object depends on the browser.
Defined in AjxRpcRequest.js
Constructor Summary |
AjxRpcRequest
(id, ctxt)
Creates a new AjxRpcRequest.
|
Method Summary |
void
|
cancel()
|
Object
|
invoke(requestStr, serverUrl, requestHeaders, callback, useGet, timeout)
Sends this request to the target URL.
|
Object
|
toString()
|
<static> void
|
_handleResponse(req, callback)
|
<static> void
|
_init()
|
_httpReq
Object _httpReq
ctxt
Object ctxt
id
Object id
_inited
<static> Object _inited
_msxmlVers
<static> Object _msxmlVers
AjxRpcRequest
AjxRpcRequest(id, ctxt)
Creates a new AjxRpcRequest. The request object is an ActiveX object
for IE, and an XMLHttpRequest object otherwise.
Parameters:
id
- [string] unique ID for this request
ctxt
- [_RpcCtxt] owning context
cancel
void cancel()
invoke
Object invoke(requestStr, serverUrl, requestHeaders, callback, useGet, timeout)
Sends this request to the target URL. If there is a callback, the request is
performed asynchronously.
Parameters:
requestStr
- [string] HTTP request string/document
serverUrl
- [string] request target
requestHeaders
- [Array]* HTTP request headers
callback
- [AjxCallback]* callback (for async requests)
useGet
- [boolean]* if true use GET method, else use POST
toString
Object toString()
_handleResponse
<static> void _handleResponse(req, callback)
_init
<static> void _init()
Documentation generated by
JSDoc on Thu Apr 27 13:58:40 2006