We have forms that use Java applets for various purposes, and when users open a document in edit
mode, it can sometimes take a while to load all the applets. If the user clicks on an action bar
button before the page has finished loading, they receive an error message that some object is not
defined. Here is a simple technique to prevent that from occurring.
At the very top of each form, place the following pass-thru-html:
<BODY Style="visibility: hidden">
You may wish to put this line, by itself, in a subform and then simply insert the subform in your forms.
Then, in the forms' onLoad event, place the following JavaScript:
document.body.style.visibility="visible"
This will hide the entire page until the page has finished loading...and no more "object expected" errors!
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
This was first published in May 2002