wiley-logo-sm.gif
> wiley.com

GUIDE TO DEVELOPING INTELLIGENT WEB SITES WITH JAVASCRIPT

Nigel Ford

PART II: JAVASCRIPT BASICS


Chapter 3: Processing the Information to Add Value

Program 3-1 Using SCRIPT in the BODY of a document
Program 3-2 Using SCRIPT in the HEAD of a document
Program 3-3 Using SCRIPT in the HEAD and the BODY
Program 3-4 The order in which information is displayed
Program 3-5 Using variables
Program 3-6 Creating variables
Program 3-7 Using variables
Program 3-8 Giving variables an initial value
Program 3-9 Using arrays
Program 3-10 Using functions
Program 3-11 Passing parameters to functions
Program 3-12 Using variables in functions
Program 3-13 Returning values
Program 3-14 Processing reader input with functions
Program 3-15 The first is the only value returned
Program 3-16 Creating a cookie
Program 3-17 Setting an absolute expiry date
Program 3-18 Setting a relative expiry date
Program 3-19 A simple IF... THEN... rule
Program 3-20 More complex rules
Program 3-21 Testing variables in rules
Program 3-22 Testing values returned by functions
Program 3-23 A WHILE loop
Program 3-24 Looping until a correct answer is given
Program 3-25 Limiting the number of cycles
Program 3-26 A FOR loop
Program 3-27 Using a FOR... IN loop to retrieve array values
Program 3-28 Retrieving more complex array values
Program 3-29 Using BREAK
Program 3-31 Using CONTINUE
Program 3-31 Using arithmetic operators
Program 3-32 More arithmetic operators

 
Cover

ISBN 0-471-24274-8
352 pages
April, 1998

Wiley Computer Publishing
Timely. Practical. Reliable.

[ Home ] [ Chapter 3 ] [ Chapter 4 ] [ Chapter 5 ] [ Chapter 6 ] [ Chapter 7 ] [ Chapter 8 ]