IE8网络加速器问题
我尝试为 IE8 创建一个网络加速器。我原来的XML文件是:
<?xml version="1.0" encoding="utf-8" ?>
<os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
<os:homepageUrl>http://localhost:3090</os:homepageUrl>
<os:display>
<os:name>My web accelerator</os:name>
<os:icon>http://localhost:3090/favicon.ico</os:icon>
</os:display>
<os:activity category="Find">
<os:activityAction context="selection">
<os:execute method="get" action="http://localhost:3090/Store/SearchResults.aspx?Pattern={selection}" />
</os:activityAction>
</os:activity>
</os:openServiceDescription>
它工作正常,但是当我尝试添加“预览”功能时,IE8报告了错误消息:“加速器信息存在问题。” 修改后的XML文件为:
<?xml version="1.0" encoding="utf-8" ?>
<os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
<os:homepageUrl>http://localhost:3090</os:homepageUrl>
<os:display>
<os:name>My web accelerator</os:name>
<os:icon>http://localhost:3090/favicon.ico</os:icon>
</os:display>
<os:activity category="Find">
<os:activityAction context="selection">
<os:execute method="get" action="http://localhost:3090/Store/SearchResults.aspx?Pattern={selection}" />
<os:preview action = "http://localhost:3090/OpenService/Accelerator.aspx" method = "get">
<os:parameter name="q" value="{selection}" type="text" />
</os:preview>
</os:activityAction>
</os:activity>
</os:openServiceDescription>
添加的XML片段有什么问题?
I try to create a web accelerator for IE8. My original XML file was:
<?xml version="1.0" encoding="utf-8" ?>
<os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
<os:homepageUrl>http://localhost:3090</os:homepageUrl>
<os:display>
<os:name>My web accelerator</os:name>
<os:icon>http://localhost:3090/favicon.ico</os:icon>
</os:display>
<os:activity category="Find">
<os:activityAction context="selection">
<os:execute method="get" action="http://localhost:3090/Store/SearchResults.aspx?Pattern={selection}" />
</os:activityAction>
</os:activity>
</os:openServiceDescription>
It works ok, but when I tried to add "preview" feature, IE8 has reported the error message: "There was a problem with the Accelerator's information."
The modified XML file is:
<?xml version="1.0" encoding="utf-8" ?>
<os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
<os:homepageUrl>http://localhost:3090</os:homepageUrl>
<os:display>
<os:name>My web accelerator</os:name>
<os:icon>http://localhost:3090/favicon.ico</os:icon>
</os:display>
<os:activity category="Find">
<os:activityAction context="selection">
<os:execute method="get" action="http://localhost:3090/Store/SearchResults.aspx?Pattern={selection}" />
<os:preview action = "http://localhost:3090/OpenService/Accelerator.aspx" method = "get">
<os:parameter name="q" value="{selection}" type="text" />
</os:preview>
</os:activityAction>
</os:activity>
</os:openServiceDescription>
What's wrong with added XML fragment?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了。
由于某些未知原因,IE8 不支持“localhost”作为操作属性中链接的目标域。我已替换所有非本地域名的链接,它开始工作。不幸的是,从那时起,我无法像在 Visual Studio 开发 Web 服务器下运行一样有效地调试我的 Web 加速器。
The problem is solved.
IE8 does not support "localhost" as target domain for links in the action attributes, for some unknown reasons. I have replaced all links to non-local domain name and it starts working. Unfortunately, since then I cannot efficiently debug my web accelerator like it was run under the Visual Studio Development Web Server.