Windows 8 provides access to all the WinRT APIs within the HTML5 development environment. Developers should be aware that there are some additional security features to consider when developing Windows 8 applications or HTML5-based cross platform applications for Windows. You can learn more about these features on MSDN.
“While jQuery meets the language criterion for Windows Store applications, Windows 8 exposes all the WinRT APIs within the HTML5 development environment, which comes with a new security model that made some code and common practices of jQuery flagged as unsafe in the context of a Windows Store application. AppendTo reviewed and re-authored portions of jQuery core to bring it into alignment with the Windows security model, as well as identified key areas where alternative patterns would need to be substituted for actually-used conventions.” — Jonathan Sampson, director of Support for appendTo.
appendTo submitted code directly to the jQuery Core project, which will integrate this support, and the alternative patterns mentioned by Sampson were submitted to the net.tuts+ site to help jQuery developers understand the Windows 8 security model and easily build Windows 8 applications using jQuery. You can read appendTo’s blog post with more details on this work.
Mobile cross platform development frameworks and tools
Developers can already use some of these mobile cross-platform development frameworks and tools on Microsoft Devices as we mentioned in a previous post about Windows Phone 8 support added to popular open source tools and frameworks. MS Open Tech continuously engages with open source communities (contributing code, providing technical support, getting developers early access to future versions of the platforms, helping with testing devices, etc.), and we’ve found that developers are eager to publish their HTML5 apps to Windows 8 and Windows Phone 8 Stores.
"At HP IT, we use Enyo to build apps for conference attendees. Our Enyo-based conference apps deliver a first-class user experience on Windows 8 and Windows Phone 8 — not to mention iOS, Android and a host of other platforms. The ability to serve users across platforms and device types with a single app is a huge win for us." — Sharad Mathur, sr. director, Software, Architecture & Business Intelligence Printing & Personal Systems HP IT
Here are some recent notable developments in HTML5 mobile cross platform development:
- Dojo is preparing its 1.9 release that not only supports Internet Explorer 10 on Windows Phone but also includes a theme for Windows Phone 8 that allows developers to integrate their HTML5 applications into the Windows Phone experience.
- Enyo.JS announced recently the release of Enyo 2.2 that added support for Windows 8 and Windows Phone 8.
- The Sencha team is about to release Sencha Touch 2.2 that adds support for Windows Phone 8 and Internet Explorer 10 as part of a pack of releases for HTML5 developers.
- The Apache Cordova (aka PhoneGap) community is dedicated to Windows Phone 8 and Windows 8 support since the recent release of its version 2.3.0.