August 2018
Intermediate to advanced
272 pages
5h 3m
English
The processing of data also requires graphic tools for visualization:
This chapter presents the HTML5 tools that JavaScript can use either for direct drawing (SVG or canvas) or multimedia display (images and videos). Displaying external sources requires sending an asynchronous request, whose return is handled, as seen in Chapter 8, by callbacks.
First, we need a surface onto which to place the drawing. There are three approaches, corresponding to the three following elements:
window object, and is hence a different window.document, an independent JavaScript engine with its own global space, etc. This is the oldest way to proceed, before the AJAX technology. We ignore it in this book.