msLaunchUri在IE11中不可用 [英] msLaunchUri not available in IE11

查看:362
本文介绍了msLaunchUri在IE11中不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一些从网站上启动特定程序(由我们创建)的奇特工作。目前,我还处于研究阶段,所以我对非常古怪的建议持开放态度。

I'm doing some fanciful work of launching a particular program (created by us) from a website. Currently, I'm still in the research phase, so I'm open to very outlandish suggestions.

基本上,我们的应用程序将通过myapp:// something打开链接; Steam用户可能熟悉的东西。但是,为了便于使用,如果有人在未安装适当程序的情况下单击此类链接,我们希望安全地提供一些错误方案。大多数浏览器只会将您带到一个无用的全标签错误页面,但我们有几个可能的解决方案,即使对于较旧的IE浏览器也是如此。

Basically, our app will open through a "myapp://something" link; something Steam users might be familiar with. However, for usability, we want to safely provide some error scenario if someone clicks such a link without the appropriate program installed. Most browsers simply take you to an unhelpful, full-tab error page, but we have several potential solutions in place, even for older IE browsers.

对于较新的IE浏览器,我想利用这个API函数,显然是在v10中引入的: navigator.msLaunchUri()

For the newer IE browsers, I wanted to make use of this API function, apparently introduced in v10: navigator.msLaunchUri()

< a href =http://msdn.microsoft.com/en-us/library/ie/jj154912%28v=vs.85%29.aspx =nofollow> http://msdn.microsoft.com/ en-us / library / ie / jj154912(v = vs.85).aspx

然而,我和几位开发人员一直在寻找这种方法开发者控制台 - 我们在Windows 7上运行IE11 - 它似乎不存在。我已经在Windows 8上尝试了它似乎可用,但我的一部分希望这与系统中的其他一些可能的差异有关。任何人都可以向我建议为什么这种方法可能会或可能不会可用?

However, myself and several developers have looked for this method using the Developer Console - we're running IE11 on Windows 7 - and it doesn't appear to be present. I've tried on Windows 8 and it appears to be available, but part of me is hoping this is to do with some other possible variance in systems. Can anyone suggest to me why this method might or might not be available?

推荐答案

我最后发帖给Microsoft Connect,得到了一个有信誉的答案。似乎msLaunchUri仅添加到Windows 8,但这一事实从未被记录过。这是因为Windows 8是第一个禁用类似功能协议(如userAgent令牌,版本向量和ActiveX控件)的Windows版本。因此,msLaunchUri是改进商店应用程序的唯一替代方案。

I ended up making a post to Microsoft Connect, and got a reputable answer. It seems that msLaunchUri was added only to Windows 8, but that fact was never documented. This was because Windows 8 was the first Windows version to disable similar-featured protocols like userAgent tokens, Version Vectors, and ActiveX controls. So, msLaunchUri was a sole alternative to improve Store applications.

希望我能通过放入版本载体找到合适的替换功能...

Hopefully, I'll be able to find appropriate replacement functionality by putting in Version Vectors...

https://connect.microsoft.com/IE/feedback/details/864863/documented-api-function-navigator-mslaunchuri-not-present-in-windows-7

这篇关于msLaunchUri在IE11中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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