Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (29 loc) · 1023 Bytes

event.fire.md

File metadata and controls

33 lines (29 loc) · 1023 Bytes

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