weixin_33712987 2013-10-14 15:25 采纳率: 0%
浏览 36

Internet Explorer和Jquery

I have the following code:

$.ajax({
    type: "POST",
    url: "ajax.php",
    data:{
        SiteLinki: $('#duvarSite').html(),
        duvarIcerik: $.trim($('#share').val().replace(/
/g,'<br />
')),
        durum: 'paylas'
    },
    success: function(sonuc){
        verileriGetir(0);
    },
    error: function(jqXHR, textStatus, errorThrown) {
        console.log(textStatus)
    }
});

It simply sends the form to the ajax.php and adds the database. It then displays the div of the page.

My problem is that this code does not work at all in Internet Explorer with protected mode turned on. It fails on the "success" portion where it is just not processed. It acts like it is completely ignored.

I have even put just an alert in the success portion and it never reaches it.

Is there something I have to do to make this work in protected mode or is there a way to detect if the browser is in protected mode? I don't have a problem with this in any other browser but IE.

Thanks Ferhat

  • 写回答

1条回答 默认 最新

  • weixin_33676492 2013-10-22 16:20
    关注

    Resolved.

    Source of the problem utf-8 with Internet Explorer.

    Solution to: Apache httpd.conf configuration file to add the line:

    AddDefaultCharset utf-8
    
    评论

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向