Home > Domino Tips > Developer > Domino > Mimic Lotus Notes Domino application functionality on the Web
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DOMINO

Mimic Lotus Notes Domino application functionality on the Web


PHILL SMITH
05.30.2008
Rating: -2.82- (out of 5)


Lotus Notes and Domino tips, tutorials and how-to articles
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


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.
Related resources from SearchDomino.com:
Top 10 issues when developing Lotus Notes Domino Internet applications

Lotus Notes Domino Application Development Reference Center

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:

JavaScript_Header
(Click on code for enlarged view and script download.)

And put this in your HTML:

HTML_attributes
(Click on code for enlarged view and script download.)

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.

You can see a working example at: http://www.jsadserver.com/fieldvalidation1.html.

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip library by member Phill Smith. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Lotus Notes Domino Application Development
Create a dynamic user-driven navigator for a Notes/Domino application
Top 10 Lotus Notes/Domino coding and development tips of 2008
Lotus Notes Domino application development best practices
Top 10 issues when developing Lotus Notes Domino Internet applications
Top 10 Lotus Notes Domino programming and development tips of 2007
Export Lotus Notes documents to Microsoft Word via Internet Explorer
A bevy of Notes/Domino development tips
How to protect your Lotus Notes application design
Adding an action to the Lotus Notes right-click menu
A smorgasbord of Notes/Domino development tips

HTML for Lotus Notes Domino
Create a dynamic fluid image gallery with Lotus Notes views
Write HTML and JavaScript in Notes view rows and columns on the Web
Open Lotus Notes documents in Microsoft Word without coding
Top 10 Lotus Notes/Domino coding and development tips of 2008
Trap an attachment path via the Domino file upload control field
Top 10 Lotus Notes Domino programming and development tips of 2007
Creating a link on an HTML page to a Microsoft Word attachment in a Lotus Notes database
A bevy of Notes/Domino development tips
Top 10 Notes/Domino developer tips of 2006
Styling Lotus Domino Web fields

JavaScript for Lotus Notes Domino
Trap JavaScript runtime errors in Domino Web apps
JavaScript workaround fixes Lotus Notes 8.x PostOpen event issue
Write HTML and JavaScript in Notes view rows and columns on the Web
JavaScript detects Web browser type and version in Notes/Domino 8.0.2
JavaScript creates a jump box on a Lotus Notes Web form
Top 10 Lotus Notes/Domino coding and development tips of 2008
How to create dynamic JavaScript in Notes Domino without formulas
Trap an attachment path via the Domino file upload control field
Converting Lotus Notes views to XML documents using JavaScript
Prevent errors on iFramed pages with JavaScript

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts