Writing Efficient, Effective Web Code for Domino, Part 6 — Secrets of the JavaScript Library

Joacim Boive


June, 2009


Explore a JavaScript library that demonstrates the most effective, useful Web coding techniques for IBM Lotus Domino. Learn how to put its functions to work in your own applications and discover the performance gains you can expect when you develop Domino forms using these techniques.


It’s finally time for a deep dive into the JavaScript library that powers the demonstration application in this series. The library provides Ajax handling, form validation, and unobtrusive JavaScript functionality, and it’s built so you can easily use any part of it in your own applications. I’ll take you through it line by line and function by function.
In addition, I’ll demonstrate a few techniques that will help you get the most out of the library. You’ll discover how to make Ajax calls using a view instead of an agent and learn how to simulate a slow-loading page to better understand how your page performs across different connections. Then, as a learning exercise, I’ll take you through several approaches to fixing a small bug in the example application — animated buttons that don’t animate properly in Internet Explorer (IE) browsers — and explain why conditional comments are the best solution.
I’ll wrap up by showing how the two forms in the demo application perform under load — first testing the form with the default Domino layout and then with the optimized form that uses the XHTML DIV layout set forth in Part 5 of this series (THE VIEW, January 2009). The performance improvement should be enough to convince you that it’s worth the extra effort to use a DIV layout.
If you are new to this series, I heartily recommend reading Part 2 (THE VIEW, September/October 2008) or investigating the download application to see what the sample Web forms look like and how they behave. For an overview of the series, please see the sidebar "Writing Efficient, Effective Web Code for Domino: The Series So Far."

Would you like to see the full version of this article?

If you are an electronic license holder to THE VIEW, please log in to view this article.

If you would like information about becoming an electronic license holder — and having 24/7 unrestricted access to all articles and content in THE VIEW Online Knowledgebase — click here to see the available subscription options.

Or call 1-781-751-8813 to speak directly with a subscription and licensing specialist about customized access for you and your team.