robmonie / jquery-week-calendar

Now actively maintained in the following fork - https://github.com/themouette/jquery-week-calendar
388 stars 388 forks source link

Refresh Calendar without render flicker #59

Open lupulin opened 8 years ago

lupulin commented 8 years ago

I'm trying figure out a way to refresh the calendar seamlessly without the flicker.

I was thinking of making 2 divs, one hidden where I could refresh it with new data thinking that it's hidden so it would render out of sight, then use the contents of that div to update the inside of the other div.

However, this doesn't work. Anytime you call "weekCalendar('refresh')" it seems to refresh all the registered calendars on the page.

I'm wondering how it might be possible to fix this issue.

Thanks!