Issue 462: Problem using refetchEvents with events:function(){}
Status:  Done
Owner: ----
Closed:  Jul 2010
Reported by fabienro...@gmail.com, Apr 24, 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).


Jun 14, 2010
Project Member #1 adamrs...@gmail.com
could you try recreating this bug in a normal browser first? thanks
Jul 5, 2010
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done