是否有一个javascript日历需要一个ical链接作为输入来显示事件? [英] Is there a javascript calendar that takes an ical link as input to display events?

查看:169
本文介绍了是否有一个javascript日历需要一个ical链接作为输入来显示事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个基于javascript的日历,这将允许我指定一个远程ical文件用作事件的源。



我知道google会允许您可以导入ical然后通过js或iframe查看日历,但我需要保持对任何时间的个人用户帐户的不可知。



有任何建议吗? >

感谢

解决方案

这可能不是一个完整的答案,认为这是一个正确方向的有用指针。






有一个名为 jqcaldav ,这是(顾名思义)不完全是一个iCalendar(ics)查看器,而是一个CalDAV客户端。



但是,由于CalDAV协议使用iCalendar格式来存储和传输日历数据, jqcaldav项目包含一些代码来解析和显示iCalendar数据。也许检查代码可以是一个有用的练习,并导致一个独立的ics查看器的开发。我也非常感兴趣的工作解决方案,但到目前为止我没有时间自己把东西放在一起。



一个快速的分析显示,确实有两个看起来与iCalendar格式有关的文件: ical.js jical.js 。后者由一个名为Kai Pfeiffer的人编写,并在德国某些旅馆的网站上使用,以在预订页面上显示动态日历: Gasthaus Pfeiffer 。检查源代码显示,使用另一个名为 ics-parser.js 的文件。此外,日历解决方案显然是根据CC-By-License发布的,鼓励在其他项目中重复使用。



如果有人基于此创建了一个项目,知道它或甚至加入。


I am looking for a javascript based calendar that will allow me to specify a remote ical file to use as the source for the events.

I know google will allow you to import the ical then view the calendar via js or iframe, but I need to keep this agnostic to individual user accounts of any time.

Any suggestions?

Thanks

解决方案

This may not be a complete answer but I think it's a useful pointer in the right direction.


There's a project called jqcaldav, which is (as the name suggests) not exactly an iCalendar (ics) viewer but a CalDAV client. So far I haven't found a way to specify an ics URL to display directly.

However, since the CalDAV protocol uses the iCalendar format to store and communicate Calendar data, the jqcaldav project should contain some code to parse and display iCalendar Data. Maybe examining the code can be a useful exercise and lead to the development of a standalone ics viewer. I would also be highly interested in a working solution, but so far I haven't had time to put something together myself.

A quick analysis shows that there are indeed two files that are seemingly concerned with the iCalendar format: ical.js and jical.js. The latter was written by someone called Kai Pfeiffer and is used on the website of some inn in Germany to display a dynamic calendar on the bookings page: Gasthaus Pfeiffer. Examining the source code reveals that another file called ics-parser.js is used. Also, the calendar solution was apparently released under a CC-By-License, encouraging reuse in other projects.

If someone creates a project based on this, I'd glad to know of it or even join in.

这篇关于是否有一个javascript日历需要一个ical链接作为输入来显示事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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