Home Page Icon
Home Page
Table of Contents for
Title
Close
Title
by John Paxton, Russ Ferguson, John Resig
Pro JavaScript Techniques, Second Edition
Cover
Title
Copyright
Dedication
Contents at a Glance
Contents
About the Authors
About the Technical Reviewers
Acknowledgments
Chapter 1: Professional JavaScript Techniques
How Did We Get Here?
Modern JavaScript
The Rise of Libraries
More Than a Note about Mobile
Where Do We Go from Here?
Coming Up Next
Summary
Chapter 2: Features, Functions, and Objects
Language Features
References and Values
Scope
Context
Closures
Function Overloading and Type-Checking
New Object Tools
Objects
Modifying Objects
Summary
Chapter 3: Creating Reusable Code
Object-Oriented JavaScript
Inheritance
Member Visibility
The Future of Object-Oriented JavaScript
Packaging JavaScript
Namespaces
The Module Pattern
Immediately Invoked Function Expressions
Summary
Chapter 4: Debugging JavaScript Code
Debugging Tools
The Console
Leveraging the Console Features
The Debugger
DOM Inspector
Network Analyzer
Timeline
Profiler
Summary
Chapter 5: The Document Object Model
An Introduction to the Document Object Model
DOM Structure
DOM Relationships
Accessing DOM Elements
Finding Elements by CSS Selector
Waiting for the HTML DOM to Load
Waiting for the Page to Load
Waiting for the Right Event
Getting the Contents of an Element
Getting the Text of an Element
Getting the HTML of an Element
Working with Element Attributes
Getting and Setting an Attribute Value
Modifying the DOM
Creating Nodes Using the DOM
Inserting into the DOM
Injecting HTML into the DOM
Removing Nodes from the DOM
Handling White Space in the DOM
Simple DOM Navigation
Summary
Chapter 6: Events
Introduction to JavaScript Events
The Stack, the Queue, and the Event Loop
Event Phases
Binding Event Listeners
Traditional Binding
DOM Binding: W3C
Unbinding Events
Common Event Features
The Event Object
Canceling Event Bubbling
Overriding the Browser’s Default Action
Event Delegation
The Event Object
General Properties
Mouse Properties
Keyboard Properties
Types of Events
Page Events
UI Events
Mouse Events
Keyboard Events
Form Events
Event Accessibility
Summary
Chapter 7: JavaScript and Form Validation
HTML and CSS Form Validation
CSS
JavaScript Form Validation
Validation and Users
Validation Events
Customizing Validation
Preventing Form Validation
Summary
Chapter 8: Introduction to Ajax
Using Ajax
HTTP Requests
HTTP Response
Summary
Chapter 9: Web Production Tools
Scaffolding Your Projects
NPM is the Foundation for Everything
Generators
Version Control
Adding Files, Updates, and the First Commit
Summary
Chapter 10: AngularJS and Testing
Views and Controllers
Remote Data Sources
Routes
Route Parameters
Application Testing
Unit Testing
End to End Testing with Protractor
Summary
Chapter 11: The Future of JavaScript
The Once and Future ECMAScript
Using ECMAScript Harmony
Harmony Resources
Working with Harmony
ECMAScript Harmony Language Features
Arrow Functions
Classes
Promises
Modules
Type Extensions
New Collection Types
Summary
Appendix A: DOM Reference
Resources
Terminology
Global Variables
document
HTMLElement
DOM Navigation
body
childNodes
documentElement
firstChild
getElementById( elemID )
getElementsByTagName( tagName )
lastChild
nextSibling
parentNode
previousSibling
Node Information
innerText
nodeName
nodeType
nodeValue
Attributes
className
getAttribute( attrName )
removeAttribute( attrName )
setAttribute( attrName, attrValue )
DOM Modification
appendChild( nodeToAppend )
cloneNode( true|false )
createElement( tagName )
createElementNS( namespace, tagName )
createTextNode( textString )
innerHTML
insertBefore( nodeToInsert, nodeToInsertBefore )
removeChild( nodeToRemove )
replaceChild( nodeToInsert, nodeToReplace )
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Copyright
Pro JavaScript Techniques
Second Edition
John Resig
Russ Ferguson
John Paxton
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset