Problem solve Get help with specific problems with your technologies, process and projects.

How can I display a message on a Web page as it loads?

I would like to know if there is any way to display a message on a Web page as it loads. For example, if I'm loading a real bulky view embedded on a page, I want to display a simple message like "Loading...please wait." until the view finally loads. Then the message must disappear.

Any suggestions would be appreciated.
That's a bit tricky. If the view is an HTML view (not the applet, and it probably won't be the applet), what you're waiting for is actually all of the HTML document to download. And you can't have anything happening while you're downloading.

My first suggestion would be to modify your view to be less bulky.

Assuming that that's not good enough, maybe this approach can be of help to you, but it will probably require you to change your application quite a lot:

  • Load the view in a frame.

  • When the user clicks a link that loads the view, let the action in the link be a JavaScript that first displays a "Loading...please wait" message (this would be DHTML -- let the JavaScript unhide the message that is already on the page) in a different frame than the one holding the view.

  • Then let the JavaScript load the view in the view frame.

  • On the page holding the view (use a $$ViewTemplate) put an onLoad event that hides the "Loading...please wait" message.

Dig Deeper on Web Development for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com'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 ...