Contents

About the Authors

About the Technical Reviewers

Acknowledgments

image 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

image 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

image 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

image Chapter 4: Debugging JavaScript Code

Debugging Tools

The Console

Leveraging the Console Features

The Debugger

DOM Inspector

Network Analyzer

Timeline

Profiler

Summary

image 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

image 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

image 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

image Chapter 8: Introduction to Ajax

Using Ajax

HTTP Requests

HTTP Response

Summary

image 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

image 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

image 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

image 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

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.36.38