
Programming HTML5 Applications
Building Powerful Cross-Platform Environments in JavaScript
Zachary Kessin(Author)
O'Reilly (Publisher)
1st Edition
Published on 27. December 2011
Book
140 pages
978-1-4493-9908-5 (ISBN)
Description
HTML5 is not just a replacement for plugins. It also makes the Web a first-class development environment by giving JavaScript programmers a solid foundation for building industrial-strength applications. This practical guide takes you beyond simple site creation and shows you how to build self-contained HTML5 applications that can run on mobile devices and compete with desktop apps.
You'll learn powerful JavaScript tools for exploiting HTML5 elements, and discover new methods for working with data, such as offline storage and multithreaded processing. Complete with code samples, this book is ideal for experienced JavaScript and mobile developers alike.
* Store session data in the browser with local storage objects
* Save trips to the server: store larger amounts of data with IndexedDB
* Give browsers limited access to a user's system to read and upload files
* Take your app offline-and speed up page loading when it's online
* Use Web Workers to create multithreaded applications
* Transfer data between browser and server more efficiently with Web Sockets
* Learn about HTML5 tags for forms, multimedia, graphics, and geolocation
"HTML5 is all the rage these days, but it's more than just a buzzword. Programming HTML5 Applications provides the knowledge to guide you through all the new technologies needed to make modern web applications."
--Ralph Whitbeck, cohost of The Official jQuery Podcast
More details
Language
English
Place of publication
Sebastopol
United States
Target group
Professional and scholarly
Product notice
Paperback (trade)
Unsewn / adhesive bound
Dimensions
Height: 233 mm
Width: 177 mm
Thickness: 13 mm
Weight
240 gr
ISBN-13
978-1-4493-9908-5 (9781449399085)
Schweitzer Classification
Other editions
Additional editions

Zachary Kessin
Programming HTML5 Applications
Building Powerful Cross-Platform Environments in JavaScript
E-Book
11/2011
O'Reilly
€24.49
Available for download
Person
Zachary Kessin first discovered the world wide web around 1993 when NCSA Mosaic was still the dominant browser. He has been building applications on the internet around 1995 when perl and CGI were the way to go. He has worked in the Boston Area, London, and Tel Aviv. He currently works at Mytopia a leading social games company in Ramat Gan Israel. Mytopia builds games for Facebook and mobile. Zachary's main responsibility is to build an internal Dashboard, a single page Javascript application that is used to manage many aspects of Mytopia operations. The dashboard started about 2 1/2 years ago as an old style web application, where all logic was done in PHP and every action required a page load. Over the first year it evolved from there threw several phases into a single page application, in which all functionality is in one web page and only login and logout require a page load. About 2 years ago we started using Google Gears to speed up the Dashboard. At some point after google stopped developing gears we have started moving those features over to HTML 5. At this point the dashboard uses localStorage, Canvas, and the HTML5 application Cache. There was some use of Gears Worker Pool as well. The Dashboard is based on ExtJS and jQuery.
Content
Preface;
How This Book Is Organized;
Conventions Used in This Book;
Using Code Examples;
SafariĀ® Books Online;
How to Contact Us;
Acknowledgments;
Chapter 1: The Web As Application Platform;
1.1 Adding Power to Web Applications;
1.2 Developing Web Applications;
1.3 JavaScript's Triumph;
Chapter 2: The Power of JavaScript;
2.1 Nonblocking I/O and Callbacks;
2.2 Lambda Functions Are Powerful;
2.3 Closures;
2.4 Functional Programming;
2.5 Prototypes and How to Expand Objects;
2.6 Expanding Functions with Prototypes;
2.7 Currying and Object Parameters;
2.8 Array Iteration Operations;
2.9 You Can Extend Objects, Too;
Chapter 3: Testing JavaScript Applications;
3.1 QUnit;
3.2 Selenium;
Chapter 4: Local Storage;
4.1 The localStorage and sessionStorage Objects;
4.2 JQuery Plug-ins;
Chapter 5: IndexedDB;
5.1 Adding and Updating Records;
5.2 Adding Indexes;
5.3 Retrieving Data;
5.4 Deleting Data;
Chapter 6: Files;
6.1 Blobs;
6.2 Working with Files;
6.3 Uploading Files;
6.4 Drag-and-Drop;
6.5 Putting It All Together;
6.6 Filesystem;
Chapter 7: Taking It Offline;
7.1 Introduction to the Manifest File;
7.2 Events;
7.3 Debugging Manifest Files;
Chapter 8: Splitting Up Work Through Web Workers;
8.1 Web Worker Use Cases;
8.2 Using Web Workers;
8.3 Web Worker Fractal Example;
8.4 Testing and Debugging Web Workers;
8.5 A Pattern for Reuse of Multithread Processing;
8.6 Libraries for Web Workers;
Chapter 9: Web Sockets;
9.1 The Web Sockets Interface;
9.2 Setting Up a Web Socket;
9.3 Web Socket Example;
9.4 Web Socket Protocol;
Chapter 10: New Tags;
10.1 Tags for Applications;
10.2 Accessibility Through WAI-ARIA;
10.3 Microdata;
10.4 New Form Types;
10.5 Audio and Video;
10.6 Canvas and SVG;
10.7 Geolocation;
10.8 New CSS;
JavaScript Tools You Should Know;
Colophon;