在FF,Chrome但不是IE工作?怎么了? [英] Working in FF, Chrome but not IE? Whats wrong?

查看:114
本文介绍了在FF,Chrome但不是IE工作?怎么了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的合作伙伴创建了一个脚本,但他现在处于离线状态,所以我自己试图修复此问题。

My partner has created a script but he is offline at the moment so I am attempting to fix this myself.

以下是我们目前的代码:

Here is the code we currently have:

function progressStatus(Progress) {

    // Get our progress status
    $.get('http://www.site.com/progress/'+Progress, { }, function (response) {

        // Eval our response
        eval(response);
    });
}

然后在我们的页面中,我们有:

and then in our page, we have:

// Start our status checking
var Progress = $('#Progress').val();
ProgressStatus = setInterval('progressStatus("'+Progress+'")', 1000);

它在Firefox,Chrome中运行良好,我可以假设它正在循环并获得新的状态Firefox,Chrome但在IE浏览器中,它只会将进度调整一次然后什么都不做。

It works fine in Firefox, Chrome, all I can assume is it's looping and getting the new status in Firefox, Chrome but in IE, it only pings the progress once and then does nothing.

这有什么问题?我不确定是否需要更多代码,如果是,我会用更多代码编辑我的问题。

What is wrong with this? I'm not sure if any more code is needed, if it is I'll edit my question with more code.

谢谢。

推荐答案

不起作用意味着什么。将来请详细说明哪些不起作用。我将假设它意味着它永远不会更新get请求中的新状态并继续抓住旧状态。

Does not work means about nothing. IN the future please give more details on what not working means. I am going to assume that it means it is never updating the new status on the get request and keeps grabbing the old one.

需要停止缓存

$.ajax({
  url: "http://www.site.com/progress/"+Progress,
  cache: false,
  success: function (response) {
        // Evil Eval our response
        eval(response);
    }
});

这篇关于在FF,Chrome但不是IE工作?怎么了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆