I have a call ajax
that falls in callback
error and brings me a status 200
and statusText load
.
Follow the ajax:
$.ajax({
type: "GET",
crossDomain: "true",
dataType: "jsonp",
contentType: "text/xml",
url: "http://macchips.macpontoweb.com.br/WSVisita/Services/Comum/Autenticacao/AutenticacaoSrv.svc?Login",
data: 'usuario='+usuario.value+'&senha='+senha.value,
success: function(resposta){
window.location.href="login.html";
alert(resposta);
},
error: function(error){
var falha = JSON.stringify(error);
alert("Erro " + falha);
}
});
I'm trying to access a method from a webservice from another domain via a mobile application, using cordova