Hands-On With HTML APIs: Harness the Power of HTML APIs

Peter Leow

Language: English

Published: May 28, 2017

Description:

Over the years, HTML specification has added a bag full of APIs (Application Programming Interfaces) that cover a wide spectrum of functionality and features that power the future web browsers and mobile devices. This empowerment has brought about new possibilities and opportunities for the next generation of web applications that are more autonomous and can work offline, on multi-platforms, free of third party plug-ins and less reliant on server-side scripting. In the foreseeable future, it is not unimaginable that the web browser will replace our traditional metaphor of desktops on our computers, that of a web-based desktop.

In this book, you will dip into the HTML APIs grab bag and draw out several of them for discussion and exploration peppered with plenty of hands-on exercises, these include:* Geolocation for finding and navigating your way on Earth;* Drag and Drop for dragging and dropping UI elements on HTML pages;* Server-Sent Events for enabling server push updates from servers;* Web Sockets for establishing full-duplex bi-directional communication between clients and servers;* Web Workers for spawning JavaScript on background threads;* Web Storage for inserting, updating, retrieving, and deletion of data in your browser;* File API for turning your browser into a web-based file explorer where you can read and save files on your computer's local file system; and* Canvas for drawing and animating multimedia resources on HTML pages.

Apart from the the many learning exercises, you also get to create interesting web applications including live stock quotes, real-time web chat, a web-based file explorer, and a clever hack to save web data from your HTML page to your computer's file system.

If you wish to receive a copy of the source code, please contact me via the email address inside this book with proof of purchase.