Summary
We have glimpsed some of the capabilities and powerful features of the WinJS
in Windows 8. We learned how to implement asynchronous programming using the Promise
object.
Also, we were introduced to the methods provided in the WinJS.Utilities
namespace that allow us to retrieve and modify the elements of an HTML document. We also covered retrieving different types of content with the WinJS.xhr()
function.
Finally, we learned about the new set of controls provided by the WinJS
library and how to create these JavaScript controls and set their properties.
In the next chapter, we will start developing apps with JavaScript by introducing the needed tools first and then learn about the templates provided for Windows 8 JavaScript apps. Also, we will create a very basic app and understand the anatomy of the JavaScript app. We will also learn about the ListView control.