Domino 4.x/JavaScript Quick Reference
This table summarizes techniques specific to Domino, with and without JavaScript (JavaScript techniques are in blue). Note that JavaScript has nothing to do with Java, but rather it's an in-line scripting extension to HTML supported by Netscape 2.0+ and MSIE 3.0+Domino/JavaScript Quick Reference
(replace any { with [ to use these Code Examples -- they had to be converted to prevent conflict when publishing this doc.)
Execution Where/ When Exec'd? | Function |
Where do you design it it Notes? |
Useful with (or specific to) Domino deployment |
Front End Web Browser Immediate | Editable field size |
|
|
Save Doc (Submit) |
|
| |
Hide Submit button |
|
| |
Delete Current Doc |
|
| |
Edit Current Doc |
|
| |
Edit Any Doc |
|
| |
Open Any Doc |
|
| |
Run Agent |
|
| |
*Subroutine *Field Assignment |
In any JavaScript |
function Calc(form) { form.Total.value = form.Qty.value*form.Price.value; }...</Script>] Note: use Shift+Enter for line breaks in code | |
*Field Event Handling |
|
| |
*Form Event Handling |
|
| |
*Background color change |
|
| |
*Hidden Editable Field |
|
| |
*Pop-up Validation |
|
| |
*General Button to call a JS Subroutine |
|
| |
*Editable Dynamic Table Rows (also much faster to load for big tables) |
|
| |
Client<->Server Transaction Domino DLL Upon Opening or submiting a page | Field Assignment |
|
|
Input Validation (mes- sage on new page) |
|
| |
Save Event w/custom message or URL |
|
| |
Read-only Dynamic Table Rows |
|
| |
Differentiate between Notes and Web clients |
|
| |
Input Translation |
|
|
** Technique still works, but can be done more easily with Domino 1.5/Notes 4.5+