This question is locked. New answers and comments are not allowed.
I couldn't find a section of the site to get support.... so trying here.
I'm having trouble ajaxing a web service. the identical js code works on a website on my web server but from the icenium app. (created in mist, deployed directly to iphone 4s) it says request timed out. I'm at my wits end trying to get this working any assistance or guidance would be appreciated. thanks!
$(function(){
$.ajax({
type: 'POST',
url: 'https://xxxxxxxxxxxxx/api/v1.0/tokens',
data: JSON.stringify({
"auth" : {
"passwordCredentials" : {
"user_id" : "11111",
"password" : "11111"
},
"api_key" : "123456",
"device_id": "0000"
}
}),
headers: {
"Accept": "application/json",
"Content-Type" : "application/json"
},
dataType: "json"
}).success(function (data, code, xhr) {
alert(arguments);
}).error(function (e, r, m) {
console.log("ERROR", e, r, m);
});
});
I'm having trouble ajaxing a web service. the identical js code works on a website on my web server but from the icenium app. (created in mist, deployed directly to iphone 4s) it says request timed out. I'm at my wits end trying to get this working any assistance or guidance would be appreciated. thanks!
$(function(){
$.ajax({
type: 'POST',
url: 'https://xxxxxxxxxxxxx/api/v1.0/tokens',
data: JSON.stringify({
"auth" : {
"passwordCredentials" : {
"user_id" : "11111",
"password" : "11111"
},
"api_key" : "123456",
"device_id": "0000"
}
}),
headers: {
"Accept": "application/json",
"Content-Type" : "application/json"
},
dataType: "json"
}).success(function (data, code, xhr) {
alert(arguments);
}).error(function (e, r, m) {
console.log("ERROR", e, r, m);
});
});