hi
getting error in firefox and chrome but not in IE when i call a home controller method using jquery as below
function GetTempDetails() {
_TempIds["iHospitalId"] = "1";
_TempIds["iClinicId"] = "2";
_TempIds["iDoctorId"] = "3";
$.ajax({
type: "POST",
url: "../Home/GetTemplate",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify(_TempIds),
error: function (xhr,statusText) {
alert("Error while processing the request, please try again.");
},
success: function (result, textStatus) {
alert("succ");
}
});
}
in firefox and chrome getting error part.how to solve this?
that is
getting alert inside error part
error: function (xhr,statusText) {
// alert(xhr.responseText);
alert("Error while processing the request, please try again.");
},
that is 'Error while processing the request, please try again'
thanks.