My application doesn't call web url in iOS platform.

  • 1
  • Problem
  • Updated 7 years ago
Hi Team,

I implemented one application(phone gap+android), In that application i want to get data from web services, for that i used jquery ajax function.

That functionality working fine in all platforms except iOS. its showing error.

please find my code below, its not working for iOS.

Please tell me solution for this issue.

function check_auth() {
var data_uname = jQuery('#uname').val();
var data_upwd = jQuery('#upwd').val();
alert('data_uname : '+data_uname+'data_upwd:'+data_upwd);

jQuery.ajax({
type : 'POST',
url : 'http://XXX.XXX.X.XX:8080/WebAcess/Aut...',
data : {
'uname': data_uname,
'upwd': data_upwd
},
dataType:'json',
success : function(data) {
// alert("success");
var postObject = eval('(' + JSON.stringify(data) + ')');
alert("res : "+postObject.res);
//alert(postObject.res);
auth_res = postObject.res;
alert("auth_res : "+auth_res)

if(auth_res =='Success'){
alert("Success");
window.open("index.html",'_self');
//window.location="shutter.html";
//success_auth();
}else{
alert("Failure");
//login_auth_Popup();
window.open("shutter.html",'_self');
//window.location="index.html";

}
},
error : auth_err
});
}

Thank you,
Siva.
Photo of gudluri siva

gudluri siva

  • 62 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of Zahir

Zahir

  • 3500 Posts
  • 40 Reply Likes
Due to the thread inactivity, this issue is now closed.
Create a new issue if you have any other problem with PhoneGap Build.
Thanks

This conversation is no longer open for comments or replies.