The fire function is established to execute a application event.
Its return is an instance of the Result class.
var data = {
"#txtUser" : "Wang"
};
return (new Result()).runat("body").withdata({
"#txtUser" : "Wang"
}).alert("hello world!").concat(event.fire("subEvent", data));
Calling | Returning |
event . fire( eventId , params ) | Result |
event . fire( eventId , params , server) | Result |
Parameters | Type | Description |
eventId | String | The event file name. |
params | JSON Object |
To send values to the event.
{"param1":value1,"param2":value2,...}
|
server | String |
To call the event from a remote server.
http://remoteserver/efwapp
|