Building a Windows 8 Touch application with WinRT JavaScript and Html5

  Introduction With the introduction of WinRT (which replaces the Win32 API we are all use to), Microsoft has provided JavaScript programmers first class access to system libraries previously unavailable.  That is, because WinRT is available directly to JavaScript, device access (GPS, motion sensors, etc.) are all available directly to the application with no special security layer.  That said, WinRT also brings with it restrictions which a typical browser does not have.  Because it is possible with such tight access to the OS for applications to do harm, WinRT has a sophisticated security model in place to keep bad things from happening.  In addition, a WinRT app forces you application to behave nicely or it may not work.  For … Continue Reading

Source For Article “Building a Windows 8 Touch app with WinRT,JavaScript,HTML5” (From Microsoft MVP Award Program Blog Article)

On todays Microsoft MVP Blog, my article titled “Building a Windows 8 Touch Application with WinRT, JavaScript and HTML5” was published.  Basically,  Basically the project that is built in the article is used to view Tracks at Silicon Valley Code Camp (actually, last years tracks currently).  Inadvertently, the source was left out of the article, though there is a reference in the top that says the source is included in the article.  So, to make things complete, the source is right here in this post. Simply download the zip file below, then with Visual Studio 2012, you can build and run the application. Any questions, please post them and I will answer ASAP. Visual Studio 2012 Project   … Continue Reading

Passing Completion Functions With JavaScript (Windows 8 and XHR)

I recently did a post where I discovered a very cool trick done by the xamarin folks that had to do with executing an anonymous method in the call parameter list of a c# function call.  Basically, the idea was that you call some method to do something, then at the end of that method instead of immediately returning, you execute the dynamic function that was passed in.  That way, you can avoid all the gu involved with creating call back methods.  You can read about it here: So, as many of you know. I’m pretty good at getting c# to do what I want and finding tips like this is always a big surprise and fun to share.  So, … Continue Reading

Creating Global Variables In a Windows 8 Metro JavaScript / HTML5 Application

The title of this seems ominous and potentially dangerous.  For those that are ready to comment, first think about Globals as Constants, then post away!  The idea is that sometimes you have things in an app that you may want to change system wide.  I just ran into one of those which is the base url of all my services.  To do this, I added to default.js a simple annoymous function that executes.  First, it creates a namespace and assigns the value. It uses WinJS.Namespace.define for this and is as follows: app.oncheckpoint = function (args) { // TODO: This application is about to be suspended. Save any state // that needs to persist across suspensions here. If you need to // complete an … Continue Reading


Get every new post delivered to your Inbox

Join other followers: