Email:   


Home
In This Issue
Email a Friend
EasyPrint
Click here for the RSS feed's XML code. This is not a browser URL.


DOMINO DEVELOPER'S TOOLBOX
How to create a customized login dialog box for Domino 4.6
By Frank Cseh

This article shows how you can build an enhanced login dialog box, where you can put comments about login requirements and more details about the login process.

The Domino 4.x login dialog box has only two fields: login and password. This is illustrated in Figure A.

FIGURE A

The Domino 4.x login dialog box only has Login and Password fields.

In most cases, users are confused about the variety of passwords they have to use. In many company environments, there's a Novell password, an Internet-proxy password, a Notes password, and now the Domino password. Of course, users have to remember their related login names as well.

To help ease the confusion, I created a login dialog box that can be customized. Figure B shows how it looks in my sample database. My sample database can be found at http://www.best.com/~cseh/logindb/logindb.zip.

FIGURE B

Here's what the login box looks like in my sample database. Click picture for a larger image.

The concept of the enhanced login dialog box is based on collecting the user name and password in a free-style form, then forcing the login by issuing this command:

http://loginname:password@YourDomain.com/TransferForm?OpenForm&Login=1

For a quick login, you can use the following format (but only with 4.x or 5.x browsers):

http://loginname:password@YourDomain.com

Although not strictly relevant to this article, the loginname:password form is also usable for accessing FTP servers. You can use this format to log into an FTP site quickly:

ftp://loginname:password@YourDomain.com

It also works with 3x type of browsers.

Once again, here's the full command line:

http://loginname:password@YourDomain.com/TransferForm?OpenForm&Login=1

The formula will do a quick login. Then, to avoid seeing the password in the URL window, the formula opens a temporary form -- the TransferForm. This form immediately replaces the URL in the history buffer.

The TransferForm has one computed-for-display field, the $$HTMLHead field. It has a small JavaScript code to replace the URL with a new location, which is shown below:

"<SCRIPT LANGUAGE=\"JavaScript\">
function gothere() {
var target_form =\"http://YourDomain.com/lodindb/logindb1.nsf/\";
self.location.replace(target_form +\"?OpenDatabase&Login=1\")
}
</SCRIPT>
<BODY onLoad=\"gothere()\"></BODY>"

Next, I'd like to point out how to test and implement this database before encoding it in a production database. You should download the sample database, unzip it, and place the LOGINDB1.NSF file in the \NOTES\LOGINDB\ directory.





[ Next ]

-- Advertisement --

2-Minute Tutorials
How do I...

  • integrate MS Office or OpenOffice with Notes?
  • create cross-tab reports and charts?
  • print serial letters and mailing labels?
  • create PDFs in Lotus Notes?


Check out the 2-minute tutorials here.
-- Advertisement --

Shorten your Notes and Domino 8 Learning Curve
Announcing two seminars to save you time with the Notes and Domino 8 Upgrade and help you hit the ground running with all the new development functionality.

Tap into the experience of our real-world experts and get their actionable advice, proven techniques and field-tested solutions to make your job easier.

Learn more and register for limited early-bird discounts at www.nd8upgrade.com (Boston, San Francisco, and Toronto) and www.nd8development.com (Boston and Chicago).

Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.