【问题标题】:Cant find the problem, IE appearance problem找不到问题,IE外观问题
【发布时间】:2010-02-15 11:03:37
【问题描述】:

我有这个每 60 秒更新 file.php 的 ajax_update 脚本。现在 file.php 在更新表格后输出:

<div id="message" style="display: none;" onclick="closeNotice()">this works
</div>

我想要做的是,在 file.php 更新数据库中的字段(点)后,顶部会出现类似 stackoverflow 的消息(就像你获得徽章时一样)说你有得 1 分。无论如何:

这是我的更新脚本:

function addpoints()  { 
  var postFile = 'addpoints.php?userid='+ $('#user_id_points').val();
  $.post(postFile, function(data){
    $("#points").html(data).find("#message").fadeIn("slow")
    setTimeout(addpoints, 5000);
  });
}  

现在,我的 index.php 中有一个加载函数 addpoints 脚本..

但是为什么这个只会出现在FF而不出现在IE呢?

我已经检查了 w3c 验证器,如果它可能是未关闭的标签或其他东西,我已修复所有问题,现在我没有错误,但它仍然不起作用。

那该怎么办?

您可以在这里查看我的网站:http://azzyh.dk/newgen/area/member/indextest.php

(使用FF你会在顶部看到消息,使用IE你什么都看不到)

我很迷茫。谢谢

【问题讨论】:

  • 我会分解你的 jquery 链并在 IE 中分别尝试每个部分以调试并找出 .html()、.find() 或 .fadein() 是否有问题。
  • 我该怎么做,谢谢您的评论

标签: javascript internet-explorer appearance


【解决方案1】:

在 IE 中显示问题可能真的很痛苦,我无法直接帮助您,但是可以插入任何浏览器的 firebug lite 应该可以帮助您了解 IE 中发生的情况

Firebug Lite

如果您将以下内容添加为书签并将其粘贴在工具栏上,则只需单击一下即可在任何网页上启用 firebug lite。

javascript:var%20firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug);

【讨论】:

    猜你喜欢
    • 2012-05-02
    • 2017-12-17
    • 2013-04-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多