Web Document Editing by Double Click

Mindwatering Incorporated

Author: Tripp W Black

Created: 12/01/2003 at 12:02 PM


Notes Developer Tips

Enabling clicking on actual Domino document / page to put document in edit mode (similar to double clicking of Notes-side documents).

Based partly on tip posted on SearchDomino 11/2003

1. Give your edit button / text hotspot a JavaScript Name (ID) if needed. Write down the name. (As JavaScript is case sensitive, this button/hotspot name is case sensitive)
Note: Generally it is the name of the element you (the developer) created or has a name you want to change like hotspot34.

2. Add a JavaScript event to the form's onDblClick event:

... where myButtonName is the name our our button/hotspot.

Other options:

If you have more than one name, you can also specify the name of the form.
e.g. f=document.forms._MyForm

If you wish to make the edit button or hotspot hidden so only a double click puts the doc in hidden mode, put the hotspot/button inside a hidden Div tag:
e.g. <div style="display:none">....</div>

previous page