Hello,
i have struggled with one problem.
ajax call with jquery for webservice working fine in ie but not working in googlechrome, firefox,safari.
in googlechrome,safari and firefox it gives response as undefined
this is my code..
in aspx page
$.ajax({
type: "POST",
url: "xxx.svc/logindetails",
contentType: "application/json",
data: '{ "UserName": "' + UserName + '","Password": "' + Password + '"}',
async: false,
success: function (data) {
if (data.text == '') {
}
else{
},
error: function (data) {
}
});
in xxx.svc:
OperationContract]
[WebInvoke(Method = "POST",
BodyStyle = WebMessageBodyStyle.WrappedRequest,
ResponseFormat = WebMessageFormat.Xml
)]
public string GetUserDetailsbyLogIn(string UserName, string Password)
{
string msg="";
return msg;
}
anyone can know about this pls help me
thanks in advance...