|
MoreMotion Face API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--AjaxRequest
Represents a MoreMotion Ajax Request that is responsible for preparing an xmlHttpRequest, sending it,
receiving the response and converting the response into the speficied response type.
The supported Response types are AjaxResponse and MultiPartAjaxResponse
Defined in Ajax.js
Field Summary | |
String_or_HTMLElement |
busyImage
Html Id or the object of a DOM element that will be visible until the response is received and processed. |
function |
errorHandler
The Javascript function responsible for handling the errors |
String |
method
The Request Method. |
Object |
pageInfo
|
Object |
props
The properties object to store user data |
String |
requestEncoding
The Request Encoding. |
RequestParameterAccumulator |
requestParams
Request Parameters. |
String |
responseEncoding
The Response Encoding. |
function |
responseHandler
The Javascript function responsible for handling the response |
String |
service
The name of the Ajax Service on the server. |
boolean |
waitForResponse
Flag that specifies that the send() should not return until a response is received from the Ajax Service. |
Constructor Summary | |
AjaxRequest(requestParams, responseHandler, props)
|
Method Summary | |
void
|
send(controlId)
Sends the request to the Ajax Service that is specified with member field service |
Field Detail |
String_or_HTMLElement busyImage
function errorHandler
String method
Object pageInfo
Object props
String requestEncoding
OMgr.getPageInfo().charset
is used.
RequestParameterAccumulator requestParams
String responseEncoding
OMgr.getPageInfo().charset
is used.
function responseHandler
String service
AjaxService.doms
boolean waitForResponse
Constructor Detail |
AjaxRequest(requestParams, responseHandler, props)
requestParams
- The request parameters. It can be a single string in 'p1=p1val&p2='+this.value
form, a properties Object {p1:'p1val',p2:this.value}
form or a RequestParameterAccumulator object.
responseHandler
- The Javascript function that to be called after the response is received from MoreMotion Ajax Service
props
- The properties object to store user data
Method Detail |
void send(controlId)
controlId
- The identity that is used to make this request cancelable. By using the value of this parameter, the delayed responses can be ignored or a request can be explicitly cancelled with MoreMotionAjaxManager.cancelRequest() method
|
MoreMotion Face API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |