![]()
Implementing the JavaScript Callback Interface
The application is responsible for handling alerts and other requests for user inputs from JavaScript scripts. To handle such callbacks the application must implement the ice.storm.ScripterCallback interface and register it with the browser.
The ScripterCallback implementation must handle the following:
- Decide how long a script is allowed to block user input, and if this time is exceeded, whether the script should be terminated.
- Decide whether the script is allowed to close windows.
- Inform the user about script errors.
- Display alert messages and implement user input dialogs.
For more information and a complete example, see JavaScript and the tutorial Step 8 - JavaScript.
Note that to enable the JavaScript scripter, ib6js.jar must be included in the classpath.
|
Copyright 2005. ICEsoft Technologies, Inc. http://www.icesoft.com |