Table of Contents
Part I: Starting From a Firm Foundation
Chapter 2: Libraries, Frameworks, and Plugins
Choosing the Right JavaScript Library
What to Look for—A Ten-Point Inspection
Part II: Building the Front End
Working with Collections in Backbone
Using the View Element in Backbone
Using Nested Views in Backbone
Using the LocalStorage API with Backbone
Saving a Collection on the Server
Chapter 4: Using JavaScript Templates
Understanding the Different Template Libraries
Reviewing Template Best Practices
Setting Up the Model and View Without Templates
Rendering a View with Templates
Pros and Cons of Logic-Less Templates
Understanding Progressive Enhancement
The Progressive Enhancement Approach
Deciding Which Environments to Support
Letting HTML5 Do the Work for You
Using Polyfills for Older Browsers
Setting Up a Universal Function
Saving Form Fields to the Model
Part III: Working with Server-Side JavaScript
Using Node with Real-Time Apps
Sending Feedback to the Template
Chapter 9: Going Real-Time with WebSockets
Getting Started with Socket.IO
Building a Real-Time Chat Room
Submitting a Message to the Server
Handling the Message on the Server
Displaying the New Message on the Clients
Adding Structure with Backbone.js
Static Phone Numbers and SMS Links
Dialing Phone Numbers and Texting with JavaScript
Connecting with the Contact List
Chapter 11: JavaScript Graphics
Chapter 12: Launching Your App
Deploying Static Assets on a CDN
Appendix: CSS Preprocessing with LESS