We have in the configuration of Fullcalendar the part of bringing the events in json form, I follow the following model:
$('#full-calendar').fullCalendar({
events:{
url: 'php_ajax/jq_agenda_calendario_dados.php',
cache: true,
type: 'POST',
data: {
param1: '',
param2: ''
}
}
});
Is there any way to pass parameters in url
or data
, because the way I'm doing I have to bring the whole database with events. I would like according to the person going forward or backward in the calendar, pass a parameter to bring only that period in which the person is visualizing the calendar.