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
    
    评论

报告相同问题?

悬赏问题

  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥30 用arduino开发esp32控制ps2手柄一直报错
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 求chat4.0解答一道线性规划题,用lingo编程运行,第一问要求写出数学模型和lingo语言编程模型,第二问第三问解答就行,我的ddl要到了谁来求了
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿