Real-World JavaScript Examples

By Deborah Penny

IN THIS CHAPTER

  • Real-World Example 1: Dynamic Drop-Down Lists on the Web
  • Real-World Example 2: Dialog Boxes and window. opener on the Web
  • Real-World Example 3: Dynamic Tables
  • Real-World Example 4: Useful JavaScript Utilities

A certain amount of logic goes along with finding a solution to a problem. The examples in this chapter show you a few logical examples in JavaScript. For every way there is to program a task in JavaScript, there is yet another way to logically approach the problem. JavaScript is an open-format language, meaning that there is no IDE to guide the user or tell the user with pop-ups what commands are allowed. There is no structure but a basic syntax expertise to build your script. Domino provides some guidance with the syntax in the IDE, but for the most part, you are on your own to freely write your open script inside the IDE.

NOTE

Each of the following scripts is separated into code listings, and each listing's description and purpose is discussed in turn . At the end of each script discussion, the script is shown in its entirety if it's not already shown in the listing. These examples also assume that you have some basic knowledge of JavaScript and how to write script in the Programmer's pane, and that you are familiar with writing JavaScript functions and its syntax.

 

The examples in this chapter show you one way to perform certain tasks in Domino using JavaScript. You might find another way to script your code or find that these examples inspire you to solve a particular problem. Either way, they will show you how to make your UI better and your application smarter .

Part I. Introduction to Release 6

Whats New in Release 6?

The Release 6 Object Store

The Integrated Development Environment

Part II. Foundations of Application Design

Forms Design

Advanced Form Design

Designing Views

Using Shared Resources in Domino Applications

Using the Page Designer

Creating Outlines

Adding Framesets to Domino Applications

Automating Your Application with Agents

Part III. Programming Domino Applications

Using the Formula Language

Real-World Examples Using the Formula Language

Writing LotusScript for Domino Applications

Real-World LotusScript Examples

Writing JavaScript for Domino Applications

Real-World JavaScript Examples

Writing Java for Domino Applications

Real-World Java Examples

Enhancing Domino Applications for the Web

Part IV. Advanced Design Topics

Accessing Data with XML

Accessing Data with DECS and DCRs

Security and Domino Applications

Creating Workflow Applications

Analyzing Domino Applications

Part V. Appendices

Appendix A. HTML Reference

Appendix B. Domino URL Reference



Lotus Notes and Domino 6 Development
Lotus Notes and Domino 6 Development (2nd Edition)
ISBN: 0672325020
EAN: 2147483647
Year: 2005
Pages: 288

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net