Writing JavaScript in the Programmer's pane
JavaScript allows you to write scripts that function on the Web as well as in the Domino client. The Objects tab provides a list of JavaScript events supported in Lotus Domino Designer. JavaScript is not available for agents. For LotusScript Web agents, you can use Print statements to output HTML to the browser, including script statements. For example, Print "<script>function changeLocation(){...}</script>."
The Programmer's pane allows you to:
- Program object events with JavaScript
- Use JS Header to enter JavaScript directly into the page header
- Compile your JavaScript before leaving the Programmer's pane
- Import and export JavaScript files
To program an object event in JavaScript
- Click the placeholder for the object event in the Objects tab
- Select the client you want the code to run in from the first Run
drop down list.
Client indicates the Notes client and Web indicates a Web browser.
- Select JavaScript from the second Run drop down list.
If you select Common JavaScript, the code you enter executes in both the Notes client and a Web browser.
- Type your JavaScript in the Script area.