PROGRAMMING DOMINO FOR WEB APPLICATIONS


Examples: JavaScript object model
1. This JSHeader event handler declares a function that writes the product of the Width and Length fields to the SquareFeet field.
2. This Domino form onLoad event handler sets the window status display and then displays browser and platform information.
3. This Domino hotspot onClick event handler loads a new URL by writing to the href property of the location object.
4. These onLoad event handlers are for two pages in a frameset. When the focus is on the first frame, the status bar displays "Page one." When the focus is on the second frame, the status bar displays "Page two."
5. This onClick event handler for a page action displays the names of all the frames in a non-nested frameset.
6. This onClick event handler for a page action displays the names of all the frames in a frameset that may contain one level of nesting.
7. This onClick event handler for a page action displays the names of the applets on the page.
8. This code, placed in "Other" under the <HTML> tag of the HotSpot Properties box for a link hotspot, queries the user for a confirmation before going to the link.
9. This code is for the onClick event handler of a picture named ThePicture. When the user clicks the picture, it changes to the image resource in "Web Test.nsf" named newdam.gif.
10. This onClick event handler for a button displays information about all the elements of the elements array in the current JavaScript form.
11. This onBlur event handler for FieldTwo forces FieldTwo to be blank if FieldOne contains the value "NONE."
12. This onClick event handler for a button displays the selected values of a "Dialog list" field.
13. This onClick event handler for a button displays all the hidden fields in the document. This only works in browsers and only if "Generate HTML for all fields" is selected in the Domino Forms Properties box.
See Also