在 Firefox/Chrome 页面中打开 IE 浏览器 [英] Open IE browser in Firefox/Chrome page

查看:160
本文介绍了在 Firefox/Chrome 页面中打开 IE 浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的 Web 应用程序是基于 IE9 的,这意味着只有 IE9 才能打开我们站点中的页面.当用户的浏览器不是 IE9 时,我们将阻止用户浏览我们的网站.但是有时候我们不得不发送一个链接到用户的邮箱来完成一些操作,他们会直接用他们的默认浏览器打开链接,问题就在这里,如果默认浏览器不是IE9,那么他们无法打开链接,他们必须将链接复制到 IE9.我们的用户不想手动执行此操作,他们想直接在 IE9 中打开链接,无论默认浏览器是什么.

Our Web application is based on IE9, which means only IE9 can open the pages in our site. We'll prevent user to browse our site when their browser is not IE9. But sometimes we had to send a link to user's email box to complete some actions and they will open the link directly with their default browser, the problem is here, if the default browser is not IE9 then they can't open the link, they have to copy the link to IE9. Our user don't want do this manually, they want open the link in IE9 directly no matter what the default browser is.

我曾尝试使用 ActiveXObject,但它仅适用于 IE.我想要一个可以在 Firefox/Chrome 页面中打开 IE 浏览器的脚本.

I have tried using ActiveXObject, but it only works in IE. I want have a script which can open IE browser in Firefox/Chrome page.

推荐答案

听起来您希望在电子邮件中包含一个链接,以激活用户计算机上的特定程序,而不是激活用户计算机上的特定程序他们已经确定应该使用(例如,他们的默认浏览器).我不相信你能做到.

It sounds like you want to have a link in an email that activates a specific program on the user's computer rather than the program that they've identified should be used (e.g., their default browser). I don't believe you can do that.

您可以在 Chrome 和 Safari 中安装协议处理程序"(我怀疑 Firefox 也是如此),这会让您发送类似 ie://example.com/path/to/app.您的协议处理程序将启动 IE 并将您带到相关站点.(Apple 使用 iTunes 完成此操作.)但是您的用户必须安装处理程序(当然,您还必须编写它).

You can install "protocol handlers" in both Chrome and Safari (I suspect Firefox as well), which would let you send a link like ie://example.com/path/to/app. Your protocol handler would launch IE and take you to the relevant site. (Apple does this with iTunes.) But your users would have to install the handler (and, of course, you'd have to write it).

一个更简单的答案可能是让用户安装 Chrome、Firefox 等存在的任何无处不在的在 IE 中打开"的附加组件/扩展.他们点击链接,然后从一些中选择在 IE 中打开"一种菜单.(如果他们使用网络邮件,他们甚至可以右键单击链接并选择该行项目,具体取决于扩展程序.)

An easier answer might be to have the users install any of the ubiquitous "open in IE" add-ons/extensions that exist for Chrome, Firefox, etc. They follow the link, then choose "open in IE" from some kind of menu. (If they're using webmail, they may even be able to right-click the link and choose that line item, depending on the extension.)

附注:显然,除非不可能,否则我建议您的应用程序与 Chrome 和 Firefox 兼容.

Side note: Obviously, though, barring it being impossible I'd recommend making your application compatible with Chrome and Firefox.

这篇关于在 Firefox/Chrome 页面中打开 IE 浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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