I recently came across an article on this site about porting a WebApp built in PhoneGap to Windows Phone 8. Intrigued, I decided to follow a Getting Started guide available here.
In my project, I am utilizing Marionette.js and Cordova 2.3.0rc2. One specific issue I encountered was with an ajax call:
$.ajax({
url : urlTemp + templateId + ".html", //This points to a file in my local filesystem
data : {},
success : function(data) {
App.templates[templateId] = data;
callback.call(this, data);
},
error : function(err) {
alert('ERROR LOG: Error loading Template for: ' + urlTemp + templateId + ".html");
},
dataType : 'text'
});
Strangely, this ajax call always ends up in the error block when running on Windows Phone 8, even though it works perfectly fine on Android and IOS platforms.