外部协议请求 [英] External protocol request

查看:983
本文介绍了外部协议请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立的东西,将苹果的iCal返回的.ics文件并打开它。我已签出的网站,做这样的事情,并注意到在Chrome中,一个外部协议请求对话框出现后,如果您单击确定,iCal中打开,而Safari浏览器只是自动打开的iCal。火狐打开了一个启动应用对话框,让你选择在打开它的应用程序;如果你选择日历,然后它打开。如何让我的应用程序,以唤起这样的行为?现在,我只能让文件下载,但它不会自动打开。这是一个前端的东西或后端?

I am trying to build something that will return an .ics file and open it in Apple iCal. I have checked out websites that do something like this and noticed that in Chrome, a "External protocol request" dialog box comes up and then, if you click OK, iCal opens, whereas Safari just opens up iCal automatically. Firefox opens up a "launch application" dialog box which lets you choose which application to open it in; if you choose calendar then it opens. How do I get my application to evoke such behavior? Right now I can only make the file download, but it doesn't automatically open. Is this a frontend thing or backend?

推荐答案

创建一个简单的< A HREF => 链接,但,而不是使用的http:// 启动网址,使用 WebCal中://

Create a simple <a href=""> link, but instead of using http:// to start the url, use webcal://

这篇关于外部协议请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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