Over a million developers have joined DZone.

Windows Phone Tombstoning with PhoneGap and Knockout.js

· Mobile Zone

Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud, brought to you in partnership with IBM.

You may have heard that PhoneGap recently added support for Windows Phone 7 (WP7), which means that PhoneGap can now be used it to develop HTML5-based applications for that platform as well.  This week we have been treated to a unique tutorial on Tombstoning with PhoneGap and Knockout.js, a library that simplifies dynamic JavaScript UIs by applying the MVVM pattern.  Here's an exerpt from the tutorial:

There are numerous JavaScript UI frameworks available (MVC, MVP, MVVM), however, because I feel tombstoning lends itself particularly well to the MVVM pattern, I decided to give KnockoutJS a try. When reading about this framework you will find references to WPF and Silverlight, it is clear that it has been heavily inspired by the Microsoft XAML frameworks.  --Colin Eberhardt


Don't forget to check out the tutorial and pick up the source code when you're done.

You can download the full sourcecode (including PhoneGap library mods) here: PhoneGapExample.zip


From Knockoutjs.com

The Mobile Zone is brought to you in partnership with Strongloop and IBM.  Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud.

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}