Manage Learn to apply best practices and optimize your operations.

Disabling actions until a page finishes loading

Disabling actions until a page finishes loading

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:"visible"

This will hide the entire page until the page has finished loading...and no more "object expected" errors!

Dig Deeper on Domino Resources - Part 3



  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...