On the website that I create, when logging in (since the database is on a different server) I use json padding to check if the user is the correct credentials.
It works flawlessly (ie7, ie8 and FF) until I tried it on chrome, safari and opera , where it is a complete disaster.
$.ajax({
type: "GET",
dataType: "jsonp",
url: "http://someurl.com",
data: aRequestData,
cache: false,
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert("Error occured textStatus=" + textStatus + " errorThrown=" + errorThrown);
},
success: function(data) {
alert('success');
}
});
Normal and simple, and it works in the browser window, however, to my great surprise, it did not work in chrome, safari and opera, and did not reach the warning of successful completion.
Does anyone know how to solve this problem?
Thanks.
source
share