最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - periodically refresh events in fullcalendar - Stack Overflow

programmeradmin2浏览0评论

In the documentation of arshaw's full calendar, I found the method I think, I need to use: .fullCalendar( 'refetchEvents' ) but since I'm totally unfamiliar with JavaScript, I don't have a plan on how to use this function.

I'd like to know a simple way to make the calendar reload the events from the event sources and rerender them periodically (e.g. every 30 seconds).

Any hints will be highly appreciated.

In the documentation of arshaw's full calendar, I found the method I think, I need to use: .fullCalendar( 'refetchEvents' ) but since I'm totally unfamiliar with JavaScript, I don't have a plan on how to use this function.

I'd like to know a simple way to make the calendar reload the events from the event sources and rerender them periodically (e.g. every 30 seconds).

Any hints will be highly appreciated.

Share Improve this question asked Jul 29, 2014 at 16:31 user1145874user1145874 9693 gold badges14 silver badges22 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 11

Simply use setInterval function : http://www.w3schools./jsref/met_win_setinterval.asp

setInterval(function(){$('#yourCalendar').fullCalendar('refetchEvents')}, 30000);
发布评论

评论列表(0)

  1. 暂无评论