admin管理员组文章数量:1356285
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 badges1 Answer
Reset to default 11Simply use setInterval function : http://www.w3schools./jsref/met_win_setinterval.asp
setInterval(function(){$('#yourCalendar').fullCalendar('refetchEvents')}, 30000);
本文标签: javascriptperiodically refresh events in fullcalendarStack Overflow
版权声明:本文标题:javascript - periodically refresh events in fullcalendar - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743998109a2573362.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论