Internet Explorer无法打开Internet站点 - 操作已中止 [英] Internet Explorer cannot open the Internet site - Operation aborted

查看:131
本文介绍了Internet Explorer无法打开Internet站点 - 操作已中止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是一个众所周知的问题,并且没有什么理由; (这里有一些:

I know it's a known issue and there are few reasons for it; (here are some:

http://support.microsoft.com/default.aspx/kb/927917

<标题="http://dean.edwards.name/weblog/2005/09/busted2/"href ="http://dean.edwards.name/weblog/2005/09/busted2/"> http:// dean.edwards.name/weblog/2005/09/busted2/

http://www.mysticcoders.com/blog/2007/03/20/internet-explorer-cannot-open-the-internet-site-operation-aborted /

http ://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs

)。

只是想注意,在IE DOM实现中,有些东西在我看来也可能导致它。在我的应用程序中,我在客户端有以下代码:

Just wanted to note, that there is something that seems to me as bug in IE DOM implementation that can cause it as well. In my application I have following code on the client side:

(body&& body.hasChildNodes()){

while (body && body.hasChildNodes()) {


var node = body.firstChild;

var node = body.firstChild;

/ / ... app logic

// ... app logic

body.removeChild(node);

body.removeChild(node);

}

创建正文内容时通过服务器端的Response.Write(我在< p> ...< / p>段落部分中写下上下文)。

while body content is created by Response.Write on the server side (I write down context in <p>...</p> paragraphs sections ).

偶尔我会得到" Internet Explorer无法打开Internet站点 - "操作已中止"在IE中。在Firefox中它永远不会发生。

Occasionally I was getting "Internet Explorer cannot open the Internet site - Operation aborted" in IE. In Firefox it was never happen.

经过一些研究后我发现它与服务器端我写的事实有关:

After some research I found that it was related to the fact that on the server side I was writing:

1)'< p>'

1) '<p>'

2)content

2) content

3)'< / p>

3) '</p>

所以 - 有时在客户端,代码在段落未完全形成时运行(例如,只写了< p>)。

so - sometimes on the client side the code was running while paragraph wasn't fully formed (e.g. only <p> was written).

在这种情况下,body.hasChildNodes()仍返回true(bug#1),body.removeChild(node)将导致"operation aborted"。 (bug#2)。

In this case body.hasChildNodes() still returns true (bug #1) and body.removeChild(node) will cause "operation aborted" (bug #2).

希望它可以帮到某人。


Alex Pinsker

Alex Pinsker



推荐答案


这篇关于Internet Explorer无法打开Internet站点 - 操作已中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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