jQuery AJAX GET html 数据 IE8 不起作用

标签 jquery ajax internet-explorer-8 internet-explorer-7 getmethod

这是代码,但它不适用于 IE8 和 7(IE9、chrome、firefox、safari、opera 都可以)。我已经尝试了很多东西(meta utf-8 代码、php header 代码、获取警报、缓存:false)。我能做什么,我需要帮助。感谢您的兴趣。

        var request = $.ajax({
          type:"GET",
          url: "_veri.php?t=icerik_getir&id="+tabopen,
          dataType: "html",
        });
        request.done(function(msg) {
            $(".tab-contentmenu").html(msg);
        });

编辑:

alert 给了我在所有浏览器中请求的数据,但在“.tab-contentmenu”中仍然没有请求的数据,我该怎么办?

            var request = $.ajax({
            type:"GET",
            context: document.body,
            url: "_veri.php?t=icerik_getir&id="+tabopen,
            dataType: "html"
            });
            request.done(function(msg) {
              $(".tab-contentmenu").html(msg);
              alert(msg);
            });

最佳答案

我解决了这个问题,在 php 文件中有一个未关闭的 div,我将其删除。

关于jQuery AJAX GET html 数据 IE8 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8792815/

相关文章:

javascript - Html5 拖放显示 id 的问题

ajax - ajax settimeout刷新div

javascript - 将一个 div 变成一个链接

javascript - 使用 jquery-localize 访问 javascript 函数中的本地化字符串

javascript - Jasny Bootstrap offcanvas 菜单 - ajax 'close' 导致关闭问题

javascript - JQuery Ajax提交功能添加验证

Javascript 重定向循环仅在 IE8 上

javascript - IE8 : Object doesn't support this property or method

css - 在 LESS 中使用 IE8 @media\0screen 查询

javascript - jQuery:操作前一个div(不是父级或子级)