Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.02 KB

event.fire.md

File metadata and controls

42 lines (33 loc) · 1.02 KB

event.fire

The fire function is established to execute a application event. Its return is an instance of the Result class.

Sample

var data = {
	"#txtUser" : "Wang"
};
return (new Result()).runat("body").withdata({
	"#txtUser" : "Wang"
}).alert("hello world!").concat(event.fire("subEvent", data));
CallingReturning
event . fire( eventId , params )Result
event . fire( eventId , params , server)Result
ParametersTypeDescription
eventIdStringThe event file name.
paramsJSON Object To send values to the event.
{"param1":value1,"param2":value2,...}
serverString To call the event from a remote server.
http://remoteserver/efwapp