Hi,
Can anyone tell me why the following code results in an error in Firefox&Chrome and success in Internet Explorer?
var serviceUrl = 'http://localhost:1983/Service1.asmx/GetUserProfile';
var inputjsonData = JSON.stringify({ 'parameters': '<UserDetails><UserID>' + userId +'</UserID></UserDetails>' });
$.ajax({
type: "POST",
url: serviceUrl,
data: inputjsonData,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (usr_msg) { UserProfile(usr_msg); },
error: function AjaxFailed(result) { alert(result.status + ' ' + result.statusText); }
});