1
We have in the Fullcalendar configuration 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 on url
or in the data
, because the way I’m doing I have to bring up the entire database with the events. I would like according to what the person goes advancing or backtracking in the calendar, to pass a parameter to bring only that period in which the person is viewing the calendar.
Currently you are passing 2 various parameters, are they: param1 and param2. You can also pass as get in the url itself:
php_ajax/jq_agenda_calendario_dados.php?param1=valorQualquer¶m2=outroValor
.– Fábio Jânio
I have tried to do this, but I can’t pass values for these variavia, I’m not able to bring any data to be put in them, see I created a pasterbin with the codigo https://pastebin.com/WC9sXhd On line 143 and entering the Events, but I’m not getting past the parameters.
– edson ferrari
I didn’t understand very well, in this part of the code
url: 'php_ajax/jq_movi_pessoas.php?acao=e&foto='+foto,
you are passing 2 parameters via get, ie in PHP script would spend capturing more or less like this:$_GET['acao']
and$_GET['foto']
– Fábio Jânio
This was a test I did, this excerpt is triggered by the button add events, which I put in fullcalendar. See there on line 143 that brings the event data, see, that the query I run brings all events, without any filter because I can’t pass any parameter to make a filter in the query. That’s what I’m trying to figure out. You happen to be able to filter the events for example according to the month/year being displayed by fullcalendar?
– edson ferrari