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:

 

 document.body.style.visibility="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

SearchWindowsServer

Search400

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury

SearchDataCenter

SearchContentManagement

Close