IE8网络加速器问题

发布于 2024-08-29 08:05:04 字数 1746 浏览 8 评论 0原文

我尝试为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

但可醉心 2024-09-05 08:05:04

问题解决了。
由于某些未知原因,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文