Chapter 3. JavaScript for Windows Apps
In this chapter, we will get introduced to some of the features provided by the Windows Library for JavaScript (the WinJS
library) that has been introduced by Microsoft to provide access to Windows Runtime for the Windows Store apps using JavaScript. Windows Library for JavaScript is a library of CSS and JavaScript files. It contains a set of powerful and feature-rich JavaScript objects, functions, and methods organized into namespaces, with the aim of making it easier for developers to create Windows Store apps using JavaScript.
We will also learn about asynchronous programming with WinJS
and see how we can query the document for elements and manipulate these elements using the functions provided by the WinJS.Utilities
namespace. Next we will learn about the xhr
function and its use and finally get introduced to the set of UI controls provided by the Windows Library for JavaScript.