Contents tagged with Adventures in Windows 8
Adventures in Windows 8: Taking a Closer Look at WinJS.xhr
Yesterday, I blogged a little bit about the WinJS.xhr object. You may be wondering what that object is and what makes it so special.
WinJS is a JavaScript library that provides the “glue” that connects the HTML/JavasScript world to WinRT. Since it’s just JavaScript, we can take a …
Adventures in Windows 8: Writing WinRT Components
Earlier today, I opined the finer points of JavaScript/HTML development after earlier on the same day pointed out something that couldn’t be done in JavaScript and I added a WinRT component written in C#.
This is one of the best parts of Metro style app development: WinRT components.
Pay …
Adventures in Windows 8: Wait Did You Say JavaScript?
In my previous post, I mentioned that “I tried JavaScript first.” You may have also noticed that I’ve been blogging more and more about JavaScript dev and less about about XAML.
You may be wondering why that is.
Earlier this year, a tweet caught my eye.
I’m not so vain to …
Adventures in Windows 8: Handling HTTP 302 Responses in WinRT
I’m currently working on porting an app of mine from the phone to Windows 8 Metro.
Since I have a lot more real estate to play with on Windows 8 than on the phone and do so love a good technical challenge, I decide to add more features to the Win8 version.
Many of these features are …
Adventures in Windows 8: UX Considerations When Migrating from Windows Phone 7
For my first real Windows Metro style app, I decided to port my Area Code Look Up app from the phone over to Windows Metro.
The word “port” is somewhat misleading: there’s not really a lot of code sharing: the phone version is Silverlight and the Metro version is JavaScript. Yes, …
Adventures in Windows 8: Another Look at the Area Code Look Up App UX
One of the places designers found inspiration for the Metro design language is transportation graphics.
Taking a look at my Area Code Look Up app, I needed the key piece of content to stand out in a big way.
Fortunately, I found a great example on the Metro design language WikiPedia page.
Take a …
Adventures in Windows 8: Sending an HTTP POST Request with WinJS.xhr
One of the many things I learned last week was how to use the WinJS.xhr object to send an HTTP POST request to a remote server.
In case you’re wondering, this is how it’s done.
var targetUri = "http://sampleUri/form.aspx";
var formParams = "sampleField=" + …
Adventures in Windows 8: Making Your Own Promise
On Friday, I wrote about the WinJS.xhr object and the notion of a Promise in JavaScript. Today, I’m going to show what it takes to create your own promise. First, let’s take a look at this function below: 1: function loadDetails(areaCode) { 2: 3: var …
Adventures in Windows 8: Introducing the Simulator
You may be thinking to yourself: “Self, I’d really like to get into Window 8 Metro style, but I don’t own a touch screen device or tablet. So, I’ll just wait until I get one.” Wrong answer! If you’re serious about app development, you’ll want to start now to get a jump on everyone else. And, believe …
Adventures in Windows 8: Another Look at the Simulator
In my last post, I did a tour of the simulator function in Visual Studio 2012. But I left two burning questions unanswered as a cliffhanger. Now, here are the answers. Why Is It Called a Simulator and Not an Emulator? The answer to this question is simple: it’s not doing any emulation. Unlike the …
Adventures in Windows 8: What is a Design Language?
When you hear the word “Metro” what comes to mind? If you live in the DC area, you may think of the local mass transit system. If you're a developer learning about Windows 8, you may be wondering what this whole Metro thing means. The term Metro refers to different things based on the context. In …
Adventures in Windows 8 June Round Up Post
Here’s a round up of all my “Adventures in Windows 8” blog posts for handy reference. Adventures in Windows 8: Taking a Closer Look at WinJS.xhr Adventures in Windows 8: Writing WinRT Components Adventures in Windows 8: Wait, Did You Say JavaScript? Adventures in Windows 8: Handling HTTP 302 …
Adventures in Windows 8: HTTP Post Helper WinRT Component
Are you writing a Metro style app in JavaScript and dealing with a pesky HTTP 302 server response? Are you using the WinJS.xhr to send an HTTP POST request and everything appears to work fine, but you don’t see any cookies come back from the server? Then I may have your answer. For more details on …
Adventures in Windows 8: OOP Patterns and Windows Runtime Component Libraries
The Windows 8 App programming model allows for the creation of WinRT Components that can be created in C/C++, C#, or Visual Basic, but consumed by all the languages Windows 8 supports: JavaScript, C/C++, C#, and Visual Basic.
That’s right, you can write code in C++ and use it from JavaScript. …
