AjaxRequest


Name space rialto.io
FILE rialtoEngine\javascript\rialto\remoting\ajaxRequest.js
NAME AjaxRequest
INHERITS
VERSION 1.0
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
withWaitWindow 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
contentType String content Type of the header
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
setWaitWindow object waitWindow void no no

load

to send the request
Parameters:
String parameters:querry string
Example:
remote.load("param1=value1&param2=value2");

setUp

to setup the component with new parameter
Parameters:
object objPar:new object of parameter(same as constructor) to setup the component

setWaitWindow

Change the wait window
Parameters:
object waitWindow:object use as wait windw. The object must have a setVisible method to display it and an onclick method to cancel the call