IE8 - window.open() - “不支持这样的接口” [英] IE8 - window.open() - "No such interface supported"

查看:789
本文介绍了IE8 - window.open() - “不支持这样的接口”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从JavaScript调用window.open()时,我收到错误对话框,其中显示消息Line:xxx Error:No such interface supported

When I call window.open() from JavaScript, I get the error dialog with the message "Line: xxx Error: No such interface supported"

Google lead我指的是早在IE4上的网站,说我需要在几个DLL上运行regsrvr32。

Google leads me to websites referring as far back as IE4 saying that I need to run regsrvr32 on several DLLs.

有更好的解决方案吗?

编辑:确切的代码请求

<html><head>
<script type="text/javascript">
function windowOpen() {
    window.open("http://localhost/mysite/mypage.asp", "myWindowName", "");
}
</script></head>
<body>
<button onclick="windowOpen();return false;">Hi There</button>
</body></html>

EDIT2:
提供的答案全部回到IE4 / Win95天。我的意思是,认真?无论如何,我在IE8中禁用了平滑滚动(!!!)并且还试图注册Shoban提到的kb文章中列出的控件,但是在尝试注册shdocvw.dll时遇到错误(模块shdocvw.dll已加载但是找不到入口点DllRegisterServer。确保shdocvw.dll是一个有效的DLL或OCX文件,然后再试一次。)

The provided answers all go back to IE4/Win95 days. I mean, seriously?? Regardless, I disabled Smooth scrolling in IE8 (!!!) and also attempted to register the controls listed in the kb article mentioned by Shoban, but got an error attempting to register shdocvw.dll (The module "shdocvw.dll" was loaded but the entry-point DllRegisterServer was not found. Make sure that "shdocvw.dll" is a valid DLL or OCX file and then try again.)

推荐答案

首先,尝试以下内容,看看问题是否消失:

First of all, try just the following and see if the problem goes away:

选项1

步骤1:修复IE

将以下内容复制并粘贴到以管理员身份运行的命令提示符中,然后按:

Copy and paste the following in the command prompt running as an admin, then press :

"%systemroot%\system32\regsvr32.exe" "C:\Program Files\Internet Explorer\ieproxy.dll"

如果您运行的是64位窗口,请尝试以下操作:

If you are running 64 bit windows, try this:

%systemroot%\ systemL \ _regsvr32.exeC:\Program Files>(x 86)\ Internet Explorer \\\proproxy.dll

选项2

如果上述步骤不起作用,请尝试以下两个步骤。

If the above doesn't work, try the following two steps.

步骤1:重新注册所有DLL

以管理员身份打开命令提示符。键入以下命令:

Open a command prompt as an admin. Type the following command:

FOR /R C:\ %G IN (*.dll) DO "%systemroot%\system32\regsvr32.exe" /s "%G"

你可能会得到一些错误的窗口弹出此时,只需忽略它们并在命令提示符停止搅拌时关闭它们。

You will probably get some error windows popping up at this point, just ignore them all and close them when the command prompt stops churning.

步骤2:修复IE

在以管理员身份运行的命令提示符中复制并粘贴以下内容,然后按:

Copy and paste the following in the command prompt running as an admin, then press :

"%systemroot%\system32\regsvr32.exe" "C:\Program Files\Internet Explorer\ieproxy.dll"

如果你运行64位窗口,试试这个:

If you are running 64 bit windows, try this:

%systemroot%\ system32 \ regsvr32.exeC:\Program Files>(x86)\ Internet Explorer \ myproxy.dll

来源:

http://forums.techguy.org/all-other-software/568737-solved-internet-explorer-wont-start.html

这篇关于IE8 - window.open() - “不支持这样的接口”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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