I'm currently working on a project including the fullcalendar JQuery Plugin. I want to create a list with all events (with additional information) of selected day by clicking on the day-caption in agendaWeek- or agendaDay. I bound a click event to the table header through the viewDisplay Option:
viewDisplay: function(view){
$('table.fc-agenda-days thead th').each(function(){
if($(this).html() != " "){
$(this).css('cursor','pointer'); // set cursor
$(this).unbind('click'); //unbind previously bound 'click'
$(this).click(function(){
// to be continued....
});
}
});
}
This works fine... but how to continue from there? The only thing I can retrieve is the day-caption (e.g. "Sun 2/19"). Perhaps there is a much easier solution?