Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 807 Bytes

event.fire.md

File metadata and controls

25 lines (20 loc) · 807 Bytes

event.fire

The fire function is used to execute an 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));
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