| Issue 462: | Problem using refetchEvents with events:function(){} | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Jul 5, 2010
(No comment was entered for this change.)
Status:
Done
|
|
| ► Sign in to add a comment |