EFW Function

The EFW function is established to call server events from JSP in AJAX. It is not necessary to send params or receive results when calling server events. The only thing you must do is send the event ID. It is better to call the event in webSocket mode if it is a long-period one, and you can return several results in the event js.

Sample for JSP

<input type="button" value="Send" onclick="Efw('helloWorld_sendMessage')">
<input type="button" value="Send" onclick="Efw('helloWorld_sendMessage',true)">

API

Calling
Efw ( eventId )
Efw ( eventId, manualParams )
Efw ( eventId, sever )
Efw ( eventId, manualParams, sever )
Efw ( eventId, wsMode )
Efw ( eventId, manualParams, wsMode )
Efw ( eventId, sever, wsMode )
Efw ( eventId, manualParams, sever, wsMode )
Parameter Type Description
eventId String The name of an event file.
manualParams JSON Object To send some values which cannot be defined by jQuery selectors.
{"mode":"edit"}
sever String The URL of CORS connections to another web server application constructed by EFW.
http://127.0.0.1:8080/myApp
wsMode Boolean The flag to call the event in webSocket mode.