| Issue 2487: | Refetch events on a timer. Polling | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I imagine that, like myself, a lot of the people that use fullcalendar with an ajax source for events end up writing some logic with setInterval/setTimeout for it to update it self behind the scenes every once x seconds.
What do you think about fullcalendar providing an option, maybe named autoUpdate, or updateInterval, that facilitates this for us?
The default should probably be 0/false, meaning no autoUpdates. But this way, people that wanted it could use:
updateInterval: 10,
instead of something like:
var updateInterval = 10000;
setInterval( function() {
$("#calendar").fullCalendar('refetchEvents');
}, updateInterval);
It's just a convenience, but seems pretty easy to implement too, i did a very small PR with the changes at https://github.com/arshaw/fullcalendar/pull/224.
This would also fix the flicker of events when updating, since we're not calling the refetchEvents function.
Thanks for this plugin, it's been amazingly useful for me!
Aug 21, 2015
Discussion for this issue has moved to the following URL: https://github.com/fullcalendar/fullcalendar/issues/2752 This is because Google Code is shutting down. Apologies if you are being pestered with these notifications. This is a one-time event. Happy coding, Adam
Status:
ExportedToGithub
|
|
| ► Sign in to add a comment |
Status: Accepted
Labels: Type-Feature