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.62- (out of 5)


Lotus Notes, Domino, Workplace and WebSphere tips and advice
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
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
A project-tracking application for Lotus Notes Domino
Notespeek

HTML for Lotus Notes Domino
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
A smorgasbord of Notes/Domino development tips
An easier way to view multiple columns on the Web
How to print a form in landscape format automatically
Top 10 Domino developer tips of 2005

JavaScript for Lotus Notes Domino
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
Top 10 Lotus Notes Domino programming and development tips of 2007
How to add keyboard functionality for Lotus Notes documents
Validate Lotus Notes Domino fields using JavaScript
How to support Flash objects in any Web browser for a Lotus Notes Domino application
How to validate Lotus Notes forms on a Domino server without losing entered data
A bevy of Notes/Domino development tips
Loading XML from 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 enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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