Jquery Ajax Post不支持IE8 / IE9 [英] Jquery Ajax Post is not working on IE8 / IE9

查看:522
本文介绍了Jquery Ajax Post不支持IE8 / IE9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用聊天插件,并启动聊天,我正在使用的ajax帖子正在使用Mozilla和其他浏览器但不能使用IE8 / IE9。根据跨域问题,我使用了dataType:Jsonp,但它不起作用。



错误:SCRIPT5007:无法获取属性'call'的值:对象为null或未定义

jquery.validate.min.js,第4行字符20895



I am using chat plugin , and initiating a chat, the ajax post which i am using is working on mozilla and other browsers but not working on IE8/IE9. According to cross domain issue i have used "dataType: Jsonp" also but it's not working.

Error: SCRIPT5007: Unable to get value of the property 'call': object is null or undefined
jquery.validate.min.js, line 4 character 20895

 $("body").on("click", "#btnChat", function () {

   $.ajax({
                    url: path + "case/SubmitChatRequest",
                    data: $("#frmRequestSubmit").serialize(),
                    type: "POST",
                    dataType: "json",
                    cache: false,
                    contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                    success: function (data) {
                        alert("abc")
                        $("#divTicketRequest").html(fnhtmlNotEscape(data));
                        $("#imgAnimation").hide();

                            }
               })
}





请帮我搞定。



Please help me to get it work.

推荐答案

body)。on( click #btnChat function (){
("body").on("click", "#btnChat", function () {


.ajax({
url:path + case / SubmitChatRequest
data:
.ajax({ url: path + "case/SubmitChatRequest", data:


#frmRequestSubmit)。serialize(),
类型: POST
dataType: json
cache: false
contentType: application / x-www-form-urlencoded; charset = UTF-8
成功: function (数据){
alert( abc
("#frmRequestSubmit").serialize(), type: "POST", dataType: "json", cache: false, contentType: "application/x-www-form-urlencoded; charset=UTF-8", success: function (data) { alert("abc")


这篇关于Jquery Ajax Post不支持IE8 / IE9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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