Pro JavaScript for Web Apps

Book description

JavaScript is the engine behind every web app, and a solid knowledge of it is essential for all modern web developers. Pro JavaScript for Web Apps gives you all of the information that you need to create professional, optimized, and efficient JavaScript applications that will run across all devices. It takes you through all aspects of modern JavaScript application creation, showing you how to combine JavaScript with the new features of HTML5 and CSS3 to make the most of the new web technologies.

The focus of the book is on creating professional web applications, ensuring that your app provides the best experience for your users, with smooth and responsive control and feedback and an intuitive and optimized interface. You will learn how to take a basic application and bring it up to a professional level while making sure that it remains bullet-proof and bug free. Pro JavaScript for Web Apps will also enhance your development workflow using jQuery to streamline the process and freeing you to spend more time on the important parts of your app while the framework deals with the mundanity.

The best app experiences are a combination of a beautiful idea with flawless execution. If you have the ideas, Pro JavaScript for Web Apps will help you craft them into a phenomenal app.

Table of contents

  1. Title
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. About the Author
  6. About the Technical Reviewer
  7. Acknowledgments
  8. CHAPTER 1: Getting Ready
    1. About This Book
    2. What Software Do You Need for This Book?
    3. Introducing the CheeseLux Example
    4. Font Attribution
    5. Summary
  9. CHAPTER 2: Getting Started
    1. Upgrading the Submit Button
    2. Responding to Events
    3. Adding Dynamic Basket Data
    4. Understanding Progressive Enhancement
    5. Revisiting the Button: Using a UI Toolkit
    6. Summary
  10. CHAPTER 3: Adding a View Model
    1. Resetting the Example
    2. Creating a View Model
    3. Taking Advantage of the View Model
    4. Adding a Dynamic Basket
    5. Summary
  11. CHAPTER 4: Using URL Routing
    1. Building a Simple Routed Web Application
    2. Consolidating Routes
    3. Adapting Event-Driven Controls to Navigation
    4. Using the HTML5 History API
    5. Adding URL Routing to the CheeseLux Web App
    6. Summary
  12. CHAPTER 5: Creating Offline Web Apps
    1. Resetting the Example
    2. Using the HTML5 Application Cache
    3. Monitoring Offline Status
    4. Understanding with Ajax and POST Requests
    5. Summary
  13. CHAPTER 6: Storing Data in the Browser
    1. Using Local Storage
    2. Synchronizing View Model Data Between Documents
    3. Using Session Storage
    4. Using Local Storage with Offline Web Applications
    5. Storing Complex Data
    6. Summary
  14. CHAPTER 7: Creating Responsive Web Apps
    1. Setting the Viewport
    2. Responding to Screen Size
    3. Responding to Screen Orientation
    4. Responding to Touch
    5. Summary
  15. CHAPTER 8: Creating Mobile Web Apps
    1. Detecting Mobile Devices
    2. Creating a Simple Mobile Web App
    3. Building the Mobile Web App
    4. Duplicating Elements and Using Templates
    5. Adopting the Multipage Model
    6. Adding the Final Chrome
    7. Summary
  16. CHAPTER 9: Writing Better JavaScript
    1. Managing the Global Namespace
    2. Creating Private Properties, Methods, and Functions
    3. Managing Dependencies
    4. Unit Testing Client-Side Code
    5. Summary
  17. Index

Product information

  • Title: Pro JavaScript for Web Apps
  • Author(s):
  • Release date: June 2012
  • Publisher(s): Apress
  • ISBN: 9781430244615