AjaxRequest
| Name space |
rialto.io |
| FILE |
rialtoEngine\javascript\remoting\ajaxRequest.js |
| NAME |
AjaxRequest |
| INHERITS |
|
| VERSION |
0.86 |
| update |
|
| DESCRIPTION |
This object create a ajax request component to make asynchronus call on the server |
CONSTRUCTOR
| Name |
Type |
Description |
Default |
| url |
String |
url to call on submit action |
|
| method |
String |
method to use for the form submit (post/get) |
get |
| boolWithFenWait |
boolean |
if set to true will display a wait popup during the load |
true |
| callBackObjectOnSuccess |
object |
object who have the onsucces callback method |
|
| onSuccess |
function |
onsucces callback method |
|
| callBackObjectOnFailure |
object |
object who have the onfailure callback method |
|
| onFailure |
function |
onfailure callback method |
|
| canBeCancel |
boolean |
if set to true, the request can be abort |
true |
Example:
var remote=new rialto.io.AjaxRequest({
url:'rialtoModel.xml',
method: 'get',
callBackObjectOnSuccess:this,
withWaitWindow:false,
onSuccess: this.parseXmlForListValue
}) ;
PUBLIC METHODS
| Method |
Arguments list |
Return value |
Inherits |
To redefine |
|
load
|
String parameters |
void |
no |
no |
|
setUp
|
object objPar |
void |
no |
no |
load
to send the request
Parameters:
String parameters:querry string
Example:
remote.load("param1=value1¶m2=value2");
setUp
to setup the component with new parameter
Parameters:
object objPar:new object of parameter(same as constructor) to setup the component