I have searched through FullCalendar documentation and googled around but I haven\'t been able to find how to add events to Google Calendar using FullCalendar. I have tried
I had the same problem. I read many documentation, and at last I got a working Code. I share it here whith you:
This is how to actually add an event in Google Cal from Fullcalendar (which I like very much) :
$('#calendar').fullCalendar({
set all options : options,
selectable: true,
selectHelper: true,
// here is the part :
select: function(start, end) {
modalbox(start.format(),end.format());
},
editable: true
});
So, I make a modal Box when I select a time range (so that I can manage the inputs myself). I use here start.format() so that the DateTime is already in a GoogleFormat.
1/ I create the form
(in modal window). It will contain all the info for Google Calendar.
.
2/ I get the data and push it to a new page in AJAX
so that the page does not reload...