Home > Store

JavaScript by Example, Rough Cuts, 2nd Edition

Rough Cuts

  • Available to Safari Subscribers
  • About Rough Cuts
  • Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.

Not for Sale

Description

  • Copyright 2010
  • Dimensions: 7 X 9-1/8
  • Pages: 936
  • Edition: 2nd
  • Rough Cuts
  • ISBN-10: 0-13-708473-0
  • ISBN-13: 978-0-13-708473-9

This is the Rough Cut version of the printed book.

The World’s Easiest Java Script Tutorial–Fully Updated!

 

JavaScript by Example, Second Edition, is the easiest, most hands-on way to learn JavaScript. Legendary programming instructor Ellie Quigley has thoroughly updated her classic book to deliver the skills and information today’s JavaScript users need most–including up-to-the-minute coverage of JavaScript programming constructs, CSS, Ajax, JSON, and the latest JavaScript libraries and best practices.

Quigley illuminates every technique with focused, classroom-tested code examples, detailed line-by-line explanations, and real program output. This exceptionally clear, easy-to-understand book takes you from your first script to advanced techniques. It’s the only JavaScript book you’ll ever need!

New in This Edition 

  • End-of-chapter study tools, including classroom-tested labs
  • Programming the DOM
  • More Cascading Style Sheets
  • Introduction to Ajax and JSON
  • Explanation of how to develop interactive Web applications with dynamic, desktop-style interfaces
  • Programmers’ preparation for HTML 5’s breakthrough capabilities 

This edition has been completely updated and includes many new and completely rewritten code examples; contains fully revised and updated coverage of Cascading Style Sheets (CSS) and the Document Object Model (DOM); and fully covers modern JavaScript concepts, principles, and programming techniques.

Thousands of Web developers, administrators, and power users have relied on JavaScript by Example to become expert JavaScript programmers. With this new edition, you can, too–even if you’re completely new to JavaScript. After you’ve become an expert, you’ll turn to this book constantly as the best source for trustworthy answers, solutions, and code.

Sample Content

Table of Contents

Preface xv

Chapter 1: Introduction to JavaScript 1

1.1 What JavaScript Is 1

1.2 What JavaScript Is Not 2

1.3 What JavaScript Is Used For 3

1.4 JavaScript and Its Place in a Web Page 4

1.5 What Is Ajax? 5

1.6 What JavaScript Looks Like 7

1.7 JavaScript and Its Role in Web Development 8

1.8 JavaScript and Events 10

1.9 Standardizing JavaScript and the W3C 12

1.10 What Browser? 15

1.11 Where to Put JavaScript 20

1.12 Validating Your Markup 24

1.13 What You Should Know 26

Chapter 2: Script Setup 29

2.1 The HTML Document and JavaScript 29

2.2 Syntactical Details 33

2.3 Generating HTML and Printing Output 37

2.4 About Debugging 40

2.5 Debugging Tools 41

2.6 JavaScript and Old or Disabled Browsers 47

2.7 What You Should Know 50

Chapter 3: The Building Blocks: Data Types, Literals, and Variables 53

3.1 Data Types 53

3.2 Variables 59

3.3 Constants 67

3.4 Bugs to Watch For 69

3.5 What You Should Know 70

Chapter 4: Dialog Boxes 73

4.1 Interacting with the User 73

4.2 What You Should Know 80

Chapter 5: Operators 83

5.1 About JavaScript Operators and Expressions 83

5.2 Types of Operators 88

5.3 Number, String, or Boolean? Data Type Conversion 112

5.4 Special Operators 119

5.5 What You Should Know 120

Chapter 6: Under Certain Conditions 123

6.1 Control Structures, Blocks, and Compound Statements 123

6.2 Conditionals 123

6.3 Loops 131

6.4 What You Should Know 140

Chapter 7: Functions 143

7.1 What Is a Function? 143

7.2 Debugging Techniques 166

7.3 What You Should Know 172

Chapter 8: Objects 175

8.1 What Are Objects? 175

8.2 Classes and User-Defined Functions 182

8.3 Object Literals 187

8.4 Manipulating Objects 191

8.5 Extending Objects with Prototypes 196

8.6 What You Should Know 210

Chapter 9: JavaScript Core Objects 213

9.1 What Are Core Objects? 213

9.2 Array Objects 213

9.3 Array Methods 227

9.4 The Date Object 234

9.5 The Math Object 241

9.6 What You Shou

Updates

Submit Errata

More Information