| Issue 49: | refresh without refetch/ corruption of table when hidden | |
| 3 people starred this issue and may be notified of changes. | Back to list |
Hi there, first of all gratz for this great piece of code. Now my request :) When I refresh/change month (throw the provided methods)while the calendar is hidden, the calendar and its events then become corrupted when visible again. Sooo could you make a refresh method that do not refetch the events? Or something else (that may be I can't imagine) to fix this problem? Anyway I this of course is a minor issue.
Jul 18, 2009
Project Member
#1
adamrs...@gmail.com
Status:
Accepted
Jul 23, 2009
Hi, I got something similar using the jQuery UI tabs, I made screen shots available here: http://www.flickr.com/photos/cvedovini/3748112833/ and here: http://www.flickr.com/photos/cvedovini/3748909190 Regards
Jul 23, 2009
A temporary solution that I`m currently using is:
1) Create a global variable (in line ~94):
var refetch=true;
2) Create a function like (in line ~230):
redraw: function() {
refetch=false;
refreshMonth();
refetch=true;
}
3)enclose the fetchEvents call in an if statement like this (in line ~500):
if(refetch)fetchEvents(renderEvents);
else renderEvents(events);
Finally I`m calling $('#month-calendar').fullCalendar('redraw');
every time the calendar becomes visible (and was hidden right before).
Sep 21, 2009
hello. just came out with 1.3, which has 2 new distinct methods: refetchEvents and rerenderEvents (http://arshaw.com/fullcalendar/docs/methods.php). let me know if any troubles. thanks.
Sep 21, 2009
(No comment was entered for this change.)
Status:
Fixed
Apr 23, 2010
Hi,
I use fullcalendar embedded in my application with python-webkit.
Users can add events from a gtk dialog window, then I need to refresh the calendar to
see this new event.
In python :
def refresh_events(self):
print "REFRESH"
script = "alert('test');"
script+= "$('#calendar').fullCalendar('refetchEvents');"
script+= "$('#calendar').fullCalendar('rerenderEvents');"
self.execute(script)
The javascript alert works but events are not refresh.
Definition of events in javascript:
events: function(start, end, callback) {
query = '/signal/events/?start='
query += Math.round(start.getTime() / 1000)
query += '&end='
query += Math.round(end.getTime() / 1000)
document.title = query;
text = $('#events').text();
events = eval(text);
if (events)
callback(events);
},
Note: this function works ( initialization, move next/previous day/week/month update
events correctly)
I use FullCalendar v1.4.5 and I test it with webkit v1.2.0.
For now I will force webkit to refresh all the content (this should solve my problem).
Aug 13, 2013
(No comment was entered for this change.)
Status:
Implemented
Aug 13, 2013
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |