My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 462: Problem using refetchEvents with events:function(){}
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Jul 2010


Sign in to add a comment
 
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
Sign in to add a comment

Powered by Google Project Hosting