| Issue 181: | Reload data? | |
| 3 people starred this issue and may be notified of changes. | Back to list |
Hi again, I just love the calender, Applaues! 1. I have almost finnished my calendar with all the stuff that saves, fetches data and so on. 2. But how should I be able to "reload" the calender from my database, when I have added an new appointment for example? Even when I do updates to "appointments". I am using this syntax to load the calender with a JSON output... events: "/ajaxcall/getCalenderAdds.asp", But I assume that I have to do it in another way, since this just executes when the calender is loaded. Could you please provide me with a working sample? I have search this "forum" for two days now, but I cant find anything? I guess that there are other people that needs this. Regards, Joakim
Nov 13, 2009
#1
krassm...@gmail.com
Nov 18, 2009
I have some kind of a problem to. Next to my calendar I have a select with 4 options. Depending on the selected option, I want to reload the events from the calendar. anyone can come with an example of how to trigger the load / reload events? Also if I want to pass more parameters to the events ajax call how can I do it ?
Nov 20, 2009
use the 'refetchEvents' method: http://arshaw.com/fullcalendar/docs/methods.php
Status:
Done
Nov 21, 2009
Perfect, didnt see that function on your page;) Sorry for that, but now it works like a charm!
Jan 21, 2012
But is there a way to pass parameters? So we can get specific items back?
Jan 21, 2012
ok, i found a way: first remove them and then add them...
$('#calendar').fullCalendar('removeEvents');
$('#calendar').fullCalendar( 'addEventSource', "command/cal_events.php?action=get&cal_id=" + cal_id );
Would be nice if there was a function that did this all together...
Jan 22, 2012
eventsources does it all together, but then the whole calendar initiates again, i don't want that |
|
| ► Sign in to add a comment |