|
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 specified response type.
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 that can be "GET" or "POST". |
PageInfo |
pageInfo
The page information used by this request. |
Object |
props
The properties object passed to the related refresh method. |
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
PageInfo 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, or a properties object in {p1:'p1val',p2:this.value} form or a RequestParameterAccumulator object.
responseHandler - The Javascript function to be called after the response is received from MoreMotion Ajax Service. The response handler specified by the Ajax Service java class with response.setResponseHandler() method overrides the value of this parameter.
props - The properties object to store the callers 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 canceled with MoreMotionAjaxManager.cancelRequest() method
|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||