Implementing context-sensitive includes the following steps:
For example, the next example demonstrates how to send a message to an alert when a server publishes a HELP event. The JavaScript package is eg.app and the server is eg.app.APP, as shown in the following example. eg.app.APP.subscribe(jsx3.app.Server.HELP, eg.app.onHelp);
eg.app.onHelp = function(objEvent) {
objEvent.target.alert("Help", " ")
};
|
Contents
|
