"停止运行此脚本&QUOT?;错误 [英] "Stop running this script?" error

查看:210
本文介绍了"停止运行此脚本&QUOT?;错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个网站,使大量使用JavaScript(jQuery的)。我经常得到IE浏览器停止运行此脚本?错误对话框,当我尝试关闭浏览器。

I am developing a site that makes extensive use of JavaScript (jQuery). I regularly get the IE 'Stop running this script?' error dialog when I try to close the browser.

我猜出现这个问题,因为该网站是使用AJAX单页,所以没有回发复位执行的命令的IE浏览器的数量。

I'm guessing the problem occurs because the site is a single page that uses AJAX, so there are no postbacks to reset IE's count of commands executed.

客户端注册表黑客不是一个选项。

Client-side registry hacking is not an option.

有谁知道一个方法来解决这个问题?

Does anyone know a way to get around this error?

更新:该页面有一个数字(约10)间隔计时器民调持续在30秒间隔或60

UPDATE: The page has a number (~10) interval timers that poll continually on 30 or 60 second intervals.

推荐答案

我也面临这个问题,并已通过将连续DOM executio克服了这个问题。对于这种方法,我用的setTimeout 功能。彻底解决这个问题取决于你如何分割连续执行。

I have also faced this issue and had overcame this issue by dividing the continous DOM executio. For this approach, I used setTimeout function. Resolving this issue completely depends on how you are dividing the continuous execution.

这篇关于"停止运行此脚本&QUOT?;错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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