在firefox和chrome中获取错误 [英] Getting error in firefox and chrome

查看:100
本文介绍了在firefox和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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆