Pro Windows 8 Development with HTML5 and JavaScript by Adam Freeman

By Adam Freeman

Apps are on the center of home windows eight, bringing wealthy and interesting reports to either pill and computing device clients. home windows eight makes use of the home windows Runtime (WinRT), a whole reimagining of home windows improvement that helps a number of programming languages and is outfitted on HTML5, CSS and JavaScript. those functions are the way forward for home windows improvement and JavaScript is ideal language to use this fascinating and versatile environment.

Seasoned writer Adam Freeman explains how one can get the main from WinRT and home windows eight through concentrating on the gains you would like in your venture. He begins with the nuts-and-bolts and indicates you every little thing via to complex gains, going in-depth to provide you the data you need.

Each subject is roofed essentially and concisely and is jam-packed with the main points you want to discover ways to be actually powerful. crucial gains are given a no-nonsense in-depth therapy and chapters comprise examples that exhibit either the facility and the subtlety of home windows eight, home windows Runtime and Javascript.

Show description

Read Online or Download Pro Windows 8 Development with HTML5 and JavaScript PDF

Best javascript books

Beginning Android Web Apps Development: Develop for Android using HTML5, CSS3, and JavaScript

With starting Android internet Apps improvement, you'll methods to follow HTML5, CSS3, JavaScript, Ajax and different internet criteria to be used at the Android cellular platform, by means of construction numerous enjoyable and visually stimulating video games and different internet functions! If you've performed a few uncomplicated net improvement, and you are looking to construct your talents to create exceptional web apps, you'll find everything you search within the discussions and examples during this e-book.

Pro Windows 8 Development with HTML5 and JavaScript

Apps are on the middle of home windows eight, bringing wealthy and interesting reports to either capsule and computer clients. home windows eight makes use of the home windows Runtime (WinRT), a whole reimagining of home windows improvement that helps a number of programming languages and is equipped on HTML5, CSS and JavaScript. those purposes are the way forward for home windows improvement and JavaScript is ideal language to use this fascinating and versatile surroundings.

Ruby in a Nutshell: A Desktop Quick Reference (In a Nutshell (O'Reilly))

Ruby is a fully natural object-oriented scripting language written in C and designed with Perl and Python features in brain. whereas its roots are in Japan, Ruby is slowly yet without doubt gaining flooring within the US. The objective of Yukihiro Matsumoto, writer of Ruby and writer of this booklet, is to include the strengths of languages like Perl, Python, Lisp and Smalltalk.

Erlang Programming: A Concurrent Approach to Software Development

This booklet is an in-depth creation to Erlang, a programming language perfect for any state of affairs the place concurrency, fault tolerance, and speedy reaction is key. Erlang is gaining common adoption with the appearance of multi-core processors and their new scalable method of concurrency. With this advisor you are going to how you can write complicated concurrent courses in Erlang, despite your programming heritage or event.

Extra info for Pro Windows 8 Development with HTML5 and JavaScript

Example text

Restore application state here. oncheckpoint = function (args) { // TODO: This application is about to be suspended. Save any state // that needs to persist across suspensions here. sessionState object, which is automatically // saved and restored across suspension. setPromise(). start(); })(); You don’t have to understand the contents of this file at the moment—I’ll explain all of the object and method calls later in the book. It is worth understanding, however, that apps are written using standard JavaScript, so the base objects and data types you are familiar with are available, as is the standard DOM 23 CHAPTER 2 ■ GETTING STARTED API, which you can use to locate HTML elements in your app markup and register event handlers, for example.

Css file contains some placeholders, which you can see in Listing 2-2. css file provides a lot of default styles. Even when you start to define custom styles for your app, you’ll find that you end up with less CSS than you would for a comparable web app, because the theme files cover the basics. Listing 2-2. css file as created by Visual Studio body { } @media screen and (-ms-view-state: fullscreen-landscape) { } @media screen and (-ms-view-state: filled) { } @media screen and (-ms-view-state: snapped) { } @media screen and (-ms-view-state: fullscreen-portrait) { } The @media rules are used in an app to create layouts that adapt to the screen orientation and the amount of space allocated to the app (apps can be displayed full-screen or allocated to most of the screen, known as filled mode, e or to a tiny sliver of the screen, known as snapped mode).

I use these buttons in Chapter 6 to show you how to create layouts that adapt when the device orientation changes. The sole button in the third group changes the screen resolution and pixel density, which I also explore in Chapter 6. There is only one button in the fourth group as well and it is used to simulate GPS data. You’ll see how this is used in Chapter 29, when I show you how to create apps that are location aware. The final button group lets you take screenshots of whatever is shown by the simulator.

Download PDF sample

Rated 4.53 of 5 – based on 28 votes