weixin_33693070 2012-11-07 21:52 采纳率: 0%
浏览 33

为什么.load在IE8中不起作用

I have this code,

    $(".delete").live("click", function () {
    alert("!");
    var self = $(this);
    var loadUrl = $(this).attr('href');
    var interestParents = self.parents('div:eq(4)').attr("id");
    $.ajax({
        type: "POST",
        url: loadUrl,
        data: "isAjax=1"
    }).done(function (msg) {
        self.parent().parent().parent().parent().parent().fadeOut('fast', function () {
            $(this).remove();
        });
        //console.log($("#"+interestParents).load(site_url+"my_profile/interests " + "#" + interestParents).fadeIn('fast'));
        //$("#UL_" + msg + "items").load(site_url + "my_profile/interests " + "#UL_" + msg + "items").fadeIn('fast');
        $("#large_buttons").load(site_url + "my_profile #large_buttons > *").show();

    });
    return false;
});

and I cannot for life of me work out why the .load does not load the data into the large_buttons div, it definatly exists on the page, and it works in every other browser but IE8.

  • 写回答

2条回答 默认 最新

  • 北城已荒凉 2012-11-08 01:34
    关注

    Check to make sure that the page you are "load"ing (my_profile) is valid HTML (no misplaced end tags, unclosed tags, etc). I had an issue like this with IE8 because the markup I was trying to load was invalid. Most browsers managed to interpret the bad markup, but IE8 failed.

    An HTML validator may help you.

    评论

报告相同问题?

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题