You are previewing Windows® 8 Apps with HTML5 and JavaScript Unleashed.
O'Reilly logo
Windows® 8 Apps with HTML5 and JavaScript Unleashed

Book Description

Already comfortable with JavaScript and HTML? Microsoft has just empowered you to build breakthrough apps for Windows 8. It’s a remarkable opportunity--and best-selling Microsoft web development author Stephen Walther will show you how to take full advantage of it.

Offering the same deep insight and practical code that has made his ASP.NET Unleashed the #1 ASP.NET book of all time, Walther covers everything you need to build, test, and distribute outstanding Windows 8 software with JavaScript and HTML5.

Walther clearly demonstrates the unique advantages Windows 8 offers to web developers. He guides you through using Microsoft’s new WinJS library to develop apps for Microsoft’s brand-new version of Windows--you learn how to use JavaScript templates, controls, and data binding. You’ll find in-depth coverage of everything from displaying data with a ListView control to supporting SkyDrive cloud storage, creating games to using IndexedDB and HTML5 forms.

If you’re a web developer, Windows 8 gives you millions of new potential users--and you already have many of the skills you’ll need to reach them. Get this book, master the tools and techniques you don’t already know--and go after that huge new market!

Detailed information on how to...

  • Get your app published in the Windows Store

  • Create apps that work great with touch, keyboard, stylus, and mouse

  • Use JavaScript controls such as the Tooltip, Rating, DatePicker, and FlipView controls

  • Thoroughly master using the WinJS ListView control to display, sort, and filter data

  • Use HTML5 Canvas to build arcade games

  • Store data on the local file system, via remote web services, or in IndexedDB databases

  • Use Live Services to authenticate users, retrieve user profiles, and interact with SkyDrive

  • Create custom WinJS controls with Page Controls

  • Build apps that gracefully adapt to different screen resolutions and orientations

  • Take pictures from your computer’s webcam and play sounds

  • Table of Contents

    1. Title Page
    2. Copyright Page
    3. Contents at a Glance
    4. Table of Contents
    5. About the Author
    6. Dedication
    7. Acknowledgments
    8. We Want to Hear from You!
    9. Reader Services
    10. Introduction
      1. Prerequisites for This Book
      2. Source Code
    11. Chapter 1. Building Windows Store Apps
      1. What Is a Windows Store App?
      2. Creating Your First Windows Store App
      3. Elements of a Windows Store App
      4. Building Windows Store Apps with Visual Studio
      5. Debugging a Windows Store App
      6. Publishing to the Windows Store
      7. Summary
    12. Chapter 2. WinJS Fundamentals
      1. Namespaces, Modules, and Classes
      2. Asynchronous Programming with Promises
      3. Retrieving DOM Elements with Query Selectors
      4. Performing Ajax Calls with the xhr Function
      5. Summary
    13. Chapter 3. Observables, Bindings, and Templates
      1. Understanding Observables
      2. Understanding Declarative Data Binding
      3. Understanding Templates
      4. Summary
    14. Chapter 4. Using WinJS Controls
      1. Introduction to WinJS Controls
      2. Using the Tooltip Control
      3. Using the ToggleSwitch Control
      4. Using the Rating Control
      5. Using the DatePicker Control
      6. Using the TimePicker Control
      7. Using the FlipView Control
      8. Summary
    15. Chapter 5. Creating Forms
      1. Using HTML5 Form Validation
      2. Using HTML5 Input Elements
      3. Creating a Rich Text Editor
      4. Displaying Progress
      5. Summary
    16. Chapter 6. Menus and Flyouts
      1. Using the Flyout Control
      2. Using the Menu Control
      3. Using the AppBar Control
      4. Configuring App Settings
      5. Displaying Windows Dialogs
      6. Summary
    17. Chapter 7. Using the ListView Control
      1. Introduction to the ListView Control
      2. Selecting Items in a ListView Control
      3. Sorting Items in a ListView Control
      4. Filtering Items in a ListView Control
      5. Grouping Items in a ListView Control
      6. Switching Views with Semantic Zoom
      7. Switching a ListView Template Dynamically
      8. Loading ListView Items Incrementally
      9. Summary
    18. Chapter 8. Creating Data Sources
      1. Creating Custom Data Sources
      2. Creating a File Data Source
      3. Creating a Web Service Data Source
      4. Creating an IndexedDB Data Source
      5. Summary
    19. Chapter 9. App Events and States
      1. App Events
      2. Suspending, Terminating, and Resuming an App
      3. Application View States
      4. Summary
    20. Chapter 10. Page Fragments and Navigation
      1. Using the HtmlControl Control
      2. Creating a Page Control
      3. Creating Multipage Apps
      4. Summary
    21. Chapter 11. Using the Live Connect API
      1. Installing the Live SDK
      2. Authenticating a User
      3. Passing an Authentication Token to a Web Service
      4. Retrieving Basic User Information
      5. Uploading and Downloading Files from SkyDrive
      6. Summary
    22. Chapter 12. Graphics and Games
      1. Overview of the Game
      2. Creating the Game Tiles
      3. Playing the Game Sounds
      4. Creating the Game Canvas
      5. Capturing User Interaction
      6. Creating the Update Loop
      7. Creating the Render Loop
      8. Summary
    23. Index
    24. Ad Pages