【发布时间】: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