I have recently needed to update an app that uses .ajax to call a webservice as in the example below.
This was working perfectly when using cordova pre version 4 but this version is no longer available as a build option
I'm assuming this is a "whitelist" issue but am struggling to find where and how I define this address
Can anyone give any guidance on what needs updating?
Many Thanks
Ken
$.ajax({
url: "http://webservices.etiamfrs.co.uk/service.asmx/GetProjects",
data: "{'db':'omega','Supplier':'Omega Signs'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: true,
crossDomain: true,
type: "POST",
async: false,
success: function (json) {
jsonArray = $.parseJSON(json.d);
for(i=0; i < jsonArray.length; i++)
{
project = jsonArray[i].installation;
var content = '<option value="' + project +'">' + project + '</option>';
$("#selectedProject").append(content);
}
},
error: function (data) {
$('#div_error').html(data.responseText);
alert("Error loading Projects " + data.responseText);
}
});