在firefox和chrome中获取错误 [英] Getting error in firefox and chrome
问题描述
hi
在firefox和chrome中获取错误,但在IE中使用jquery调用家庭控制器方法时没有错误
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(xhr.responseText);
alert("Error while processing the request, please try again.");
},
success: function (result, textStatus) {
alert("succ");
}
});
}
in firefox和chrome获取错误part.how来解决这个问题?
即
警告内部错误部分
错误:功能( xhr,statusText){
// alert(xhr.responseText);
alert(处理请求时出错,请再试一次。);
},
即'处理请求时出错,请再试一次'
谢谢。
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.
推荐答案
.ajax({
type: POST,
url: ../ Home / GetTemplate,
contentType: application / json; charset = utf-8,
dataType: json,
D ata: JSON .stringify(_TempIds),
错误: function (xhr,statusText){
// alert(xhr.responseText);
alert ( 处理请求时出错,请重试。);
},
成功: function (结果,textStatus){
alert( succ);
}
});
}
.ajax({ type: "POST", url: "../Home/GetTemplate", contentType: "application/json; charset=utf-8", dataType: "json", data: JSON.stringify(_TempIds), error: function (xhr,statusText) { // alert(xhr.responseText); alert("Error while processing the request, please try again."); }, success: function (result, textStatus) { alert("succ"); } }); }
in firefox和chrome获取错误part.how来解决这个问题?
即
警告内部错误部分
错误:功能( xhr,statusText){
// alert(xhr.responseText);
alert(处理请求时出错,请再试一次。);
},
即'处理请求时出错,请再试一次'
谢谢。
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.
这篇关于在firefox和chrome中获取错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!