Search DominoPower's 11,429 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
How to create a customized login dialog box for Domino 4.6 (continued)

You can test the database offline (Action-Preview in your browser), but you won't be able to log in. This is good for a start, but it has to be tested and implemented on the Domino server.

You'll have to change the portion of code to correspond to your server's name and path of the database. What follows is a list of design elements you need in order to do this.

Modify the JavaScriptSubForm
In the "JavaScriptSubForm", you have to enter the directory name where the database will reside. This subform is used for checking the browser type. If the browser is Netcsape 3.x, then don't present the custom dialog form, otherwise do. The code to be changed is:

else if (btype != "Mozilla/3") {
self.location.href="/logindb/logindb1.nsf/TheLoginForm?OpenForm"}

Modify the $$NavigatorTemplate
In the "$$NavigatorTemplate for MainNavigator" form, change the image button location (where the image is stored). I store my images in a separate database on the same server.

Modify SubmitCancelNav
In the "SubmitCancelNav" navigator, fill in the names for the domains and server fields. Don't' forget that the domains variable has a leading dot! Here's some code:

domains :=".subdir";
db := @Subset(@DbName; -1);
server :="localhost";

Modify TransferForm's $$HTML field
In the TransferForm's $$HTML field, change the path accordingly. The code portion to be changed is:

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

Additionally, you can hide the login button if the user has already logged in. If the user is not logged in, you can hide the Compose New Document type of links.

Product availability and resources
The sample database can be downloaded from Frank Cseh's web site: http://www.best.com/~cseh/logindb/logindb.zip. As always, use it at your own risk.

David Gewirtz is the author of How To Save Jobs and Where Have All The Emails Gone? For more than 20 years, he has analyzed current, historical, and emerging issues relating to technology, competitiveness, and policy. David is the Editor-in-Chief of the ZATZ magazines, is the Cyberterrorism Advisor for the International Association for Counterterrorism and Security Professionals, and is a member of the instructional faculty at the University of California, Berkeley extension. He can be reached at david@zatz.com and you can follow him at http://www.twitter.com/DavidGewirtz.


« Previous  ·  1  ·  2
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
IBM Lotus to Google Apps Migration Remorse
Webcast Series: Mobile Collaboration with Lotus Software
Domino Login Control for Mobile Apps
Sys Admin Tips March 2010
Quickr place Superusers
Writing Client-Side Javascript for Re-Use
Lotus Notes R8.5.1: Bug in Contacts "Print Selected View"
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login