JavaScript by Example
  • Alternative view 1 of JavaScript by Example
  • Alternative view 2 of JavaScript by Example

JavaScript by Example

4.0 1
by Ellie Quigley
     
 

ISBN-10: 0131401629

ISBN-13: 9780131401624

Pub. Date: 06/20/2003

Publisher: Prentice Hall

"Quigley's book strikes a perfect balance: serious, yet exceptionally accessible. I strongly recommend it to anybody learning JavaScript for the first time."
—Nick Main, software engineer

In JavaScript by Example, Ellie Quigley teaches JavaScript using the same proven approach that's made her the world's favorite scripting author and

Overview

"Quigley's book strikes a perfect balance: serious, yet exceptionally accessible. I strongly recommend it to anybody learning JavaScript for the first time."
—Nick Main, software engineer

In JavaScript by Example, Ellie Quigley teaches JavaScript using the same proven approach that's made her the world's favorite scripting author and instructor. This book's unique and classroom-tested learning path contains hundreds of small, easy-to-understand examples that demonstrate the full range of JavaScript's power. One step at a time, Quigley guides new JavaScript programmers through every essential technique, from script setup to advanced DOM and CSS programming.

Coverage includes:

  • Data types, literals, and variables
  • Operators, control structures, and functions
  • Building dialog boxes and working with JavaScript objects using the Browser object: navigator, windows frames, dynamic images, and links
  • Event handling, regular expressions, and form validation
  • The JavaScript Document Object Model (DOM), Cascading Style Sheets (CSS), and Dynamic HTML

Whether you're a first-time or long-time scripter, a Web professional or sysadmin, Ellie Quigley will help you write rock-solid JavaScripts that get the job done.

The CD-ROM contains HTML versions of Netscape's JavaScript 1.5 Core Reference and JavaScript 1.5 Core Guide PLUS all the source code and data files used in the book.

Product Details

ISBN-13:
9780131401624
Publisher:
Prentice Hall
Publication date:
06/20/2003
Edition description:
Book & CD-ROM
Pages:
752
Product dimensions:
6.88(w) x 9.14(h) x 1.09(d)

Table of Contents

Preface.

Acknowledgments.

1. Introduction to JavaScript.

What JavaScript Is. What JavaScript Is Not. What JavaScript Is Used For. JavaScript and Events. What Versions? What Browsers? Where to Put JavaScript. JavaScript and Old or Disabled Browsers. JavaScript from External Files. Exercises.

2. Script Setup.

The HTML Document and JavaScript. Syntactical Details. Generating HTML and Printing Output. About Debugging. Exercises.

3. The Building Blocks: Data Types, Literals, and Variables.

Data Types. Variables. Bugs to Watch For. Exercises.

4. Dialog Boxes.

Interacting with the User. Exercises.

5. Operators.

About JavaScript Operators and Expressions. Types of Operators. Number, String, or Boolean? Datatype Conversion. Special Operators. Exercises.

6. Under Certain Conditions. Exercises. Control Structures, Blocks, and Compound Statements. Conditionals. Loops. Exercises.

7. Functions.

What Is a Function? Debugging. Exercises.

8. Objects.

What Are Objects? User-Defined Objects. Manipulating Objects. Exercises.

9. JavaScript Core Objects.

What Are Core Objects? Array Objects. Array Properties and Methods. The Date Object. The Math Object. What Is a Wrapper Object? Exercises.

10. The Browser Objects: Navigator, Windows, and Frames.

JavaScript and the Browser Object Model. Exercises.

11. The Document Objects: Forms, Images, and Links.

The Document Object Model. Introduction to Forms. Introduction to Images. Introduction to Links. Exercises.

12. Handling Events.

Introduction to Event Handlers. Event Handlers as JavaScript Methods. Handling a Window or Frame Event. Handling Mouse Events. Handling Link Events. Handling a Form Event. Handling Key Events: onKeyPress, onKeyDown, and onKeyUp. Handling Error Events. The event Object. Exercises.

13. Regular Expressions and Pattern Matching.

What Is a Regular Expression? Creating a Regular Expression. Getting Control—The Metacharacters. Form Validation with Regular Expressions. Exercises.

14. Cookies.

What Are Cookies? Creating a Cookie with JavaScript. Exercises.

15. Dynamic HTML: Style Sheets, the DOM, and JavaScript.

What Is Dynamic HTML? What Is a Style Sheet? Types of Style Sheets. Where Does JavaScript Fit In? Exercises.

A. JavaScript Web Resources.

B. HTML Documents: A Basic Introduction.

Intro to the Intro. What Is HTML? HTML Tags. The Minimal HTML Document. Character Formatting. Linking. Adding Comments. Case Sensitivity. Graphics and Images. Troubleshooting. Metatags, Cascading Style Sheets, and Java. Looking Behind the Scenes (or, What Did We Do Before the Right-Click?). What About Frames? Some Final Thoughts.

C. CGI and Perl: They Hyper Dynamic Duo.

What Is CGI? Internet Communication Between Client and Server. Creating a Web Page with HTML. How HTML and CGI Work Together. Log Files. Where to Find CGI Applications. Getting Information Into and Out of the CGI Script. Processing Forms with CGI. The CGI.pm Module. Exercise C.1. Exercise C.2.

Index.

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >

JavaScript by Example 4 out of 5 based on 0 ratings. 1 reviews.
Guest More than 1 year ago
JavaScript is most often used in a browser on the client side. It is a scripting language that can make vanilla HTML pages more interactive. By now it, like HTML, is very stable. And if you design web pages, it is a good addition to your skill set. Being stable and popular means that there is no shortage of books on it. So on what basis should you prefer this book? Well, it takes its title very literally. The pedagogy really does emphasise copious examples. In a typical chapter, the examples take up over half the space. Plus each chapter includes a problem set. Yay! You need to learn by doing. Yet so many computer books omit this. Granted, some topics require so many parts to interoperate that writing problems is nontrivial. But to test JavaScript code, all you need is a browser, text editor and a web server. These days, all computers have the first two items. And, in the context of you wanting to learn JavaScript, you DO have a web server that you can load files onto, don't you? My only quibble is that I wish there were more problems in each chapter. This could take up very little extra room, say a page per chapter. But it would roughly triple the number of problems, and give the reader an even more exhaustive exploration of the topics.