Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
3.3.0
-
None
-
Windows phone 8, jqm 1.4.3, jquery v1.10.2. Built using current version of Phonegap Build
Description
I have created a jquery mobile (1.4.3) app using phonegap build. It uses ajax get to load a local html file into a variable that I then inject into the body of the document. This happens by user selection long after device ready.
This works well with Android and iOS but comes up with an error on Windows Phone 8
On my config.xml I have allowed for CORS
<access origin="*" />
Also in the startup of the app I have:
$(document).bind("mobileinit", function(){
$.extend( $.mobile ,
);
$.support.cors = true;
$.mobile.allowCrossDomainPages = true;
});
There is no error code returned, just the status of error. And the jqXHR.responseText is empty. The URL looks fine.
$.ajax({
type: 'get',
url: url,
dataType:"html",
beforeSend: function(jqXHR, settings)
})
.done( function(data) {
$("#phone_frame .ui-content").html(data);
$(':mobile-pagecontainer').enhanceWithin();
$(':mobile-pagecontainer').pagecontainer('change', '#phone_frame',
);
}) // done
.fail(function(jqXHR, status, err){
$.mobile.loading('hide');
alert("Status:"status", error code:"+err);
});