Email Us   Phone : 503-259-0312   
  Home    |    Instructor-led Training    |    Online Training     

Contact Us   -   Why Choose Wintrac   -   Clients    

Big Data
Business Analysis
Business Intelligence
Business Objects
Business Skills
C/C++/Go programming
Cloud Computing
Crystal Reports
Data Science
Desktop Application Software
Embedded Systems
Google Web Toolkit (GWT)
Leadership Development
Machine learning/AI
Mainframe programming
Microsoft technologies
MultiMedia and design
New Manager Development
Object oriented analysis and design
Oracle VM
Professional Soft Skills Workshops
Project Management
Sales Performance
Software quality and tools
SQL Server
Unisys Mainframe
Visual Basic
Visual Foxpro
Web Development
Websphere MQ (MQSeries)
Windows programming
XML Web Services
Programming Languages for Lotus Domino Designer R5: JavaScript
Lotus Training Overview

During this course you will thoroughly explore the use of JavaScript in Domino Designer Release 5. The course covers the basic language elements as well as how to build and use functions in the various object event handlers. There is a strong emphasis on the browser object model and how it relates to the Domino object model. The course also touches on LiveConnect access to Java applet object properties and methods, including one that uses CORBA to remotely access Domino objects on the Server.

The primary focus of the course is not on JavaScript itself, but rather on how to apply basic JavaScript language elements and object methods to enhance Domino applications for both Notes clients and browsers.

Lotus Training Learning Objectives

This course will:

build a fundamental knowledge of JavaScript as it is applied in Domino applications used by Notes clients and browsers understand the relationship between JavaScript and Notes data types describe the relationship between the Domino Object Model and the JavaScript Object Hierarchy use JavaScript to code the Field, Button, and Form event handlers provide practical programming and debugging experience to ensure a foundation of JavaScript skills build a practical understanding of data validation and error trapping demonstrate how to control Java applets using LiveConnect.

Lotus Training Audience

This course assumes that you have:

at least three months Domino application development experience a thorough knowledge of the Domino Designer R5 development environment, including Form, Page, View, Frameset, and Agent design, as well as how to use properties boxes and set the ACL a working knowledge of basic HTML an awareness of object-oriented programming, including the understanding of an object, method, and property, and how these differ from language functions mastered the topics covered in the Basic Applications for Domino Designer.

The course does not review any aspects of the non-JavaScript specific development environment. Though not required, a basic understanding of JavaScript is obviously desirable before taking this course.

Lotus Training Course duration

2 days

Lotus Training Course design

The course takes a task-oriented approach, during which you will work with JavaScript code that will have immediate application to your Domino applications.

This is NOT another "introduction to JavaScript" course. There is really no point in duplicating the literally thousands of quality books, articles, and code samples written for JavaScript. Although this course assumes no knowledge of JavaScript, it covers just enough JavaScript instruction to "make things happen" in Domino applications. Because this course instructs you how JavaScript works with respect to Domino, you will be able to leverage the many JavaScript resources available to you as a developer.

Lotus Training Course outline

Day 1

Topic 1: Basic Language Elements
Key points
HTML and JavaScript
Why use JavaScript?
JavaScript Demo
Basic syntax
Exercise: Basic syntax
Basic syntax summary
Simple dialog boxes
If structure
Exercise: If structure at Console
Boolean operators
Exercise: Boolean operators at Console

Topic 2: Object Hierarchy
Key points
Browser object model
Object Browser Subform
DOM vis a vis DOM
DOM to DOM limitations
Other objects

Topic 3: Event Handlers
Key points
Event handler basics
Exercise: Investigate event handlers

Topic 4: Functions
Key points
Function syntax
Returning a value from a function
Exercise: Function at the Console
Calling functions from a document
Formatting JavaScript on a page
Commented code
Multiple conditions
Exercise: Function on a page

Topic 5: Using Domino Designer
Key points
HTML page structure
Getting JavaScript into the <HEAD> tag
Getting JavaScript onto the page
Web DOM/Notes DOM Reference
JavaScript libraries

Topic 6: Accessing Objects
Key points
Accessing JavaScript objects
Exercise: Accessing Field object
String object
String object parsing methods
Regular expressions
Number conversion

Topic 7: Looping Structures
Key points
While structure
For structure
Breaking out of a loop
Exercise: For and while structures

Topic 8: Arrays
Key points
How to declare an array
Using array values
Out-of-bound errors
Exercise: URL commands and arrays

Topic 9: Field Access
Key points
Text Field access
With statement
JavaScript access to computed/hidden Fields in Edit mode
JavaScript access to computed/hidden Fields in Read mode
Parsing multi-value Field into an array
<SELECT> Field access
Radio button
Exercise: Accessing Fields
Exercise: Searching from a Page

Topic 10: Field Event Handlers
Key points
Field-level help in the onFocus event
Link event handlers
Field translation
Input Validation event
Validation via Field event handlers
Alert() and Focus() interactions
Multiple tests for validation
Generic function to test for empty Field
Select Field validation
Radio and Checkbox validation
String format validation
Date validation via JavaScript
Date validation via @Functions
Field computation
Exercise: Recalc using JavaScript

Topic 11: Form Validation
Key points
Field-level event handler caveats
onSubmit event handler
Keeping the <FORM> tag compact
Conditionally call form.submit()
Exercise: Form validation

Day 2

Topic 12: Window Object
Key points
Open window using HTML
Open window using JavaScript
Window features
Focus on window
Set window status
Print window
Write to window
Close window
Window opener property
Exercise: Help window
Custom dialog boxes
Simulating @Dialogbox
Simulating @Picklist
Address book lookup dialogbox

Topic 13: Frame Object
Key points
Frames are like windows
Frame basics
Example frameset
Targeting frame content using HTML
Dynamic frames via JavaScript
Exercise: Context-sensitive help

Topic 14: Location Object
Key points
Location is where you are
Location properties
Location object versus Path_info CGI variable
Working with the href property
Setting the location
Replacing the location
Reloading the page
Prevent from being framed
Frame your pages
"Menu Options"
Menu Option 1: Select with button
Menu Option 2: Select w/o button
Exercise: Image viewer window

Topic 15: Cookies
Key points
Three mechanisms
What is a cookie?
Privacy issues
Set cookie using META tag
Read cookie using CGI variable
Weaknesses of HTTP/HTML methods
Set cookie using JavaScript
Example: Set cookie
Get cookie using JavaScript
Parse cookie values
Delete cookie
Exercise: Default Field values using Cookie

Topic 16: Browser Compatibility
Key points
JavaScript language standards
Object model standards
Hiding JavaScript from non-compliant browsers
Detecting browser using CGI variable
Detecting browser using @BrowserInfo
Detecting browser using JavaScript
The problem with browser detection of JavaScript
JavaScript version detection
Feature capability detection
Code strategies

Topic 17: Debugging and Error Handling
Key points
Microsoft Script Debugger
Netscape JavaScript Debugger
Simple debugging techniques
Generic error trapping
Testing data type
Testing for NaN
Testing for "null" and "undefined" and ""
"Object is not defined" errors
Eliminating "Object is not defined" errors

Topic 18: Language and Data Integration
Key points
Design goals
Basic flow
Splash Page
SiteRegistration Form
SiteRegistration Submit process
SiteRegistration Webquerysave Agent
Forms versus Pages
MainForm Form
Computed Subform formula on MainForm
Links from the Home Page
Adding new pages

Topic 19: JavaScript to Java via LiveConnect
Key points
Embed simple JavaBean
Java applet parameters
Dynamic parameters
Investigating the applet object
lotus.domino.AppletBase applet
How the lotus.domino.AppletBase applet works
Domino Server settings
Client settings
How to use the lotus.domino.AppletBase applet
Accessing Domino objects via JavaScript
Java Console
Common errors with lotus.domino.AppletBase

Topic 20: JavaScript Resources
Key points
JavaScript Reference
JScript Reference
ECMAScript-262 Reference
Internet Explorer Object Hierarchy
JavaScript Code Examples

About us
Contact us
Careers at Wintrac
Our Clients
Why Wintrac

Register for a free training CD-ROM drawing
Refer a client or instructor and earn $$$

Wintrac Inc.
16523 SW McGwire Ct.
Beaverton OR 97007
? Wintrac, Inc. All rights reserved.                                                                               Site Map   |   Terms of Use   |   Privacy Policy