Book description
Advanced JavaScript, Third Edition provides an in-depth examination of the most important features of JavaScript. Beginning with an overview of JavaScript, the book quickly moves into more advanced features needed for complex yet robust JavaScript scripts, such as objects, arrays, and date and time functions. Additionally, various features of JavaScript that are essential for modern web pages are discussed, including manipulating the status bar, creating dynamic calendars, and working with forms, images, and the Document Object Model. Numerous examples illustrate how to implement various techniques.
Topics covered how to enhance your web pages with LED signs, banners, and images; implementing cookies to store and retrieve information; the structure of the Document Object Model and how it can be used to view, access, and change an HTML document; Security measures to protect private information while using the Internet.
Table of contents
- Contents Summary
- Contents
- Acknowledgments
- Introduction
- Chapter 1 Introduction to JavaScript
- Chapter 2 Getting Started with JavaScript
- Chapter 3 JavaScript Fundamentals
- Chapter 4 Object-Oriented Programming
- Chapter 5 Functions and Variable Scope
- Chapter 6 Utilizing JavaScript Operators
- Chapter 7 Events in JavaScript
- Chapter 8 Building and Extending Objects
- Chapter 9 Arrays
- Chapter 10 Time and Date in JavaScript
- Chapter 11 JavaScript Math
- Chapter 12 Handling Strings
- Chapter 13 The Document Object Model
- Chapter 14 The Document Object Model (Continued)
- Chapter 15 Utilizing the Status Bar
- Chapter 16 URLs and JavaScript
- Chapter 17 The Document Object and the History List
- Chapter 18 Forms
- Chapter 19 Links, Anchors, and Image Maps
- Chapter 20 Implementing Cookies
-
Chapter 21 Images and Graphics
- Defining Images in HTML
- The image Object
- Demonstration 1: Updating Digital Clock
- Demonstration 2: LED Sign
-
Demonstration 3: Netris Deluxe
- Global Statements
- drawScreen()
- computeIndex(x, y)
- state(x, y)
- setSquare(x, y, state)
- clearActive()
- checkMoveX(step)
- checkMoveY()
- moveX(step)
- smartX(x, y, step)
- moveY()
- smartY(x, y)
- shapeMap()
- getRandom()
- insertShape()
- complexWarp()
- checkWarp(startX, startY, endX, endY)
- rotate()
- flood(state)
- noActive()
- isLine(y)
- warp(startX, startY, endX, endY)
- start()
- dropLines()
- play()
- characteristics(x, y)
- fullMap()
- pause()
- Music
- Summary
- Chapter 22 Frames
- Chapter 23 Evaluation and Compilation
- Chapter 24 JavaScript Authoring Tools
- Chapter 25 Plug-ins
- Chapter 26 Style Sheets
- Chapter 27 Security Issues
-
Chapter 28 Debugging Scripts
- Types of Errors
-
Error Messages
- “string is not defined”
- “string is not a function”
- “unterminated string literal”
- “missing } after function body”
- “string is not a number”
- “string has no property named property”
- “string has no property indexed by [i]”
- “string cannot be set by assignment”
- “test for equality (==) mistyped as assignment (=)? Assuming equality test”
- “function does not always return a value”
- “access disallowed from scripts at URL_1 to documents at URL_2”
- “Lengthy JavaScript still running. Continue?”
- “syntax error”
- Manual Debugging Techniques
- Getting It Right the First Time
- Testing Your Script
- Summary
- Appendix A HTML Primer
-
Appendix B JavaScript Object Specification Syntax
- anchor Object
- applet Object
- area Object
- Array Object
- button, submit, and reset Objects
- checkbox Object
- Date Object
- document Object
- fileUpload Object
- form Object
- function Object
- hidden Object
- history Object
- image Object
- layer Object
- link Object
- Math Object
- mimeType Object
- navigator Object
- plugin Object
- radio Object
- select Object
- String Object
- text, textarea, and password Objects
- window and frame Objects
- Operators
- Appendix C ASCII Character Set
- Appendix D Online Resources
- Index
Product information
- Title: Advanced Javascript, 3rd Edition
- Author(s):
- Release date: August 2007
- Publisher(s): Jones & Bartlett Learning
- ISBN: 9781449612771
You might also like
book
JavaScript: The Definitive Guide, 6th Edition
Since 1996, JavaScript: The Definitive Guide has been the bible for JavaScript programmers—a programmer's guide and …
book
Eloquent JavaScript, 3rd Edition
JavaScript lies at the heart of almost every modern web application, from social apps like Twitter …
book
JavaScript: The Definitive Guide, 7th Edition
JavaScript is the programming language of the web and is used by more software developers today …
book
Sams Teach Yourself HTML, CSS, and JavaScript All in One, Third Edition
Teach Yourself HTML, CSS, and JavaScript All in One combines these three fundamental web development technologies …