My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 49: refresh without refetch/ corruption of table when hidden
3 people starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by thgre...@gmail.com, Jul 1, 2009
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
thegreasi,
this is definitely a reasonable request. I have not tested it out, but knowing how I 
designed the code, I will take your word for it. I will fix this in an upcoming 
release. thanks
Status: Accepted
Jul 23, 2009
#2 claude.v...@gmail.com
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
#3 thgre...@gmail.com
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
Project Member #4 adamrs...@gmail.com
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
Project Member #5 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Fixed
Apr 23, 2010
#6 fabienro...@gmail.com
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
Project Member #7 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Implemented
Aug 13, 2013
Project Member #8 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting