Contents tagged with WinJS
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: 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 …
