Copyright Ó 2000, Bits & Bytes Programming, Inc. ALL RIGHTS RESERVED

Table of Contents

Using scripting languages with Web pages. 3

Why data verification is an issue with Web applications. 3

Two main scripting languages. 4

Working with JavaScript 5

Level of browser support 5

Browsers that do not support JavaScript or have disabled scripting. 6

Hiding scripts from non–supporting browsers. 6

More about JavaScript 7

Syntax. 7

Objects used in JavaScript 7

Placement on a Web page. 7

Use of Functions. 8

JavaScript References. 9

Reference Manuals. 9

JavaScript sample code. 10

JavaScript Editing Sample. 11

Edits performed at the browser 12

Editing Process. 12

Editing Techniques. 14

Browser detection. 14

Netscape FormChek.js functions. 14

Message display. 14

Editing Techniques. 15

Select/Focus. 15

Conversion to Uppercase. 16

Multiple input buttons. 16

document.write to generate HTML. 16

Code for the sample form.. 17

Code review - HTML. 23

Section 19. 24

Section 20 – 28. 24

Section 29 – 31. 24

Section 32. 25

Code review – JavaScript 26

Section 1. 26

Section 2. 27

Section 3. 27

Section 4. 27

Section 5. 28

Section 6. 28

Section 7. 28

Section 8. 28

Sections 9 – 13. 28