Reputation: 299
I am using jquery ajax method to retrieve data. It is working in IE but I am getting data as null in FF and Google chrome. I think the problem is, mozilla cant get 'data', because alert(data) returns null; even when I debug in firebug it is showing data is null.
My code is:
$.ajax({
type: "POST",
url: "http://myserver.com/idpwd.asmx/idpwd",
data: "{ 'userID': '" + $("#usrid").val() + "','password': '" + $("#password").val() + "' }",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: Success,
error: Error
});
Upvotes: 0
Views: 807
Reputation: 236202
Two things I notice here:
Upvotes: 1