Html 将 iCal 和 google-calendar 按钮添加到页面
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7283795/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
add to iCal and google-calendar buttons to a page
提问by Jonathan
There are some webpages that have a add to iCal
and add to Google Calendar
buttons that when you click, it somehow adds an event to your calendar, would it be iCal or google Calendar.
有一些网页有add to iCal
和add to Google Calendar
按钮,当你点击时,它会以某种方式向你的日历添加一个事件,它是 iCal 还是谷歌日历。
I need to do that in a webpage, but can't seem to find the documentation about it.
我需要在网页中执行此操作,但似乎无法找到有关它的文档。
采纳答案by balexandre
Normally it's a simple button with a ics
file of the event. You can construct your own ics
file following the iCalendar protocolor use an existing library, for example, in the .NET programming language, the DDay.iCalis a marvelous tool.
通常它是一个带有ics
事件文件的简单按钮。您可以ics
按照iCalendar 协议构建自己的文件或使用现有库,例如,在 .NET 编程语言中,DDay.iCal是一个了不起的工具。
If you want just to manually generate a button with the Google Calendar button, Google has it's own generator for it:
如果您只想使用Google Calendar button手动生成按钮,Google 有自己的生成器:
http://www.google.com/googlecalendar/event_publisher_guide.html
http://www.google.com/googlecalendar/event_publisher_guide.html
回答by Wireblue
If you'd prefer to take the lazy route and use a pre-built solution, AddThisEvent may suit. http://addthisevent.com/
如果您更喜欢采用惰性路线并使用预先构建的解决方案,AddThisEvent 可能适合。 http://addthisevent.com/