This and that...

This and that...

Mimic Lotus Notes Domino application functionality on the Web

Notes ProgramingPosted by Martin Fri, March 20, 2009 08:53:50

Lotus Notes Domino developers often want to replicate how applications work within Lotus Notes on an external website. Programmers commonly make extremely large validation and hidewhen routines that place hide and validation logic in the JavaScript header. This can be cumbersome, especially with Lotus Notes forms with hundreds of inputs and tabbed tables.

This "one-size-fits-all" routine performs all of the tasks in bulk -- similar to what Lotus Notes does automatically. The logic then can be encoded directly in the HTML attributes for any input and div tags involved.

This example adds hidewhen attributes to the div tags, but they can also be used with other tags. For the input tags, validation and prompt attributes were added.

Place this in your JavaScript Header:

And put this in your HTML:
The following line is not required: <input type="text" name="example" size="30" /><br> <input type="submit" value="Submit" /> </form> </body>

The challenge we presented ourselves with was to use getElementById instead of document.all in HideWhen() and combine "validation" and "prompt" to one HTML attribute.


Fill in only if you are not real





The following XHTML tags are allowed: <b>, <br/>, <em>, <i>, <strong>, <u>. CSS styles and Javascript are not permitted.