当与Dojo一起使用时,在IE8中造成空白页面 [英] mailto causing a blank page in IE8 when used with Dojo

查看:95
本文介绍了当与Dojo一起使用时,在IE8中造成空白页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,在IE(Win7中的IE8是精确的)中,当我点击一个mailto链接时,最后一个页面被一个空白的页面替换成mailto在地址栏中。

For some reason, in IE (IE8 in Win 7 to be precise), when I click on a mailto link, I end up with the current page being replaced by a blank page with mailto in the address bar.

具体来说,这是当我点击mailto链接时会发生什么:

Specifically, this is what happens when I click the mailto link:


  1. 新的关于:空白标签打开,并弹出一个安全提示,询问我是否要打开Outlook。
    此时,原始标签看起来仍然显示原始页面。

  2. 当我点击允许或不允许时,新标签关闭并且原始页面在地址栏中重新加载了mailto。

如果我注释掉了dojo.xd.js引用,那么按预期工作。

If I comment out the dojo.xd.js reference, it works as expected.

Firefox和Chrome只是弹出Outlook新消息窗口。也可以在Windows XP和IE7上进行测试。

Firefox and Chrome just pop up the Outlook new message window. Also tested and works on Windows XP and IE7.

复制问题的代码是:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
        <HTML>
         <HEAD>
          <TITLE>mailto test</TITLE>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.3.2/dojo/dojo.xd.js" djConfig="parseOnLoad: true"></script>
         </HEAD>
         <BODY>
          <a href="mailto:example@example.com">mailto</a>
         </BODY>
        </HTML>


推荐答案

你好,我一直在调查这个问题,它归结为ie8中的扩展安全设置。
问题是所谓的保护模式。 Funnily如果您有一个mailto链接的页面,其中保护模式被禁用,并且有一个mailto链接和保护模式启用互联网,你遇到这个问题。
IE尝试启动受保护的模式,并在启动邮件客户端之前通过执行以下操作执行页面刷新:空白。
之后,它尝试重定向到您的原始页面,并且通常会比能够还原页面失败。
在默认设置中,您还会收到一个安全警告,您可以在其间禁用复选框。
将所有的指甲归结为问题,以使邮件链接到受保护的模式,或者禁用整个受保护的模式,或将您的邮件推送到受保护的模式。
更糟糕的问题是,您不能通配符整个mailto链接,如果您添加通用域通配符ala * .example.com,mailto链接mailto:myaddy@example.com仍未被认可为受信任的一部分域。
所以我不知道哪个策略是最好的解决方案,最好的可能是Microsoft修复他们的域通配符系统在互联网设置仍然是一样的在IE。

Hello I have been investigating this problem here as well and it comes down to the extended security settings in ie8. The issue is the so called protected mode. Funnily if you have a page with a mailto link which has protected mode disabled and you have a mailto link and protected mode enabled for the internet, you run into this issue. IE tries to start the protected mode, and performs a page refresh by doing so against about: blank before starting the mail client. After that it tries to redirect to your original page and more often fails than is able to restore the page. In default settings you also get a security warning in between which you can disable with a checkbox. It all nails down to the problem to get the mailto link into the protected mode or to either disable the protected mode entire or to push your mailto page into the protected mode. The nastier issue even is that you cannot wildcard entire mailto links and if you add a generic domain wildcard ala *.example.com the mailto link mailto:myaddy@example.com still is not being recognized as part of the trusted domain. So I am not sure which strategy is the best to fix this, the best probably would be that Microsoft fixes their domain wildcarding system in the internet settings which still is the same as in IE.

这篇关于当与Dojo一起使用时,在IE8中造成空白页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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