Real-World JavaScript Examples

By Deborah Penny

IN THIS CHAPTER

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 .

Категории