Issue 181: Reload data?
Status:  Done
Owner: ----
Closed:  Nov 2009
Reported by krassm...@gmail.com, Nov 11, 2009
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
Anyone out there who could assist me with this? I really need to get this finnished!

Regards, Joakim
Nov 18, 2009
#2 Andrei.C...@gmail.com
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
Project Member #3 adamrs...@gmail.com
use the 'refetchEvents' method:
http://arshaw.com/fullcalendar/docs/methods.php
Status: Done
Nov 21, 2009
#4 krassm...@gmail.com
Perfect, didnt see that function on your page;) Sorry for that, but now it works 
like a charm!
Jan 21, 2012
#5 paul.wol...@gmail.com
But is there a way to pass parameters? So we can get specific items back?
Jan 21, 2012
#6 paul.wol...@gmail.com
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
#8 paul.wol...@gmail.com
eventsources does it all together, but then the whole calendar initiates again, i don't want that