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.
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.

