I have a jQuery code that creates a calendar that lets you leave reminders on the date. The code is as follows:
var calendar = $('#calendar').fullCalendar({
slotDuration: '00:15:00', /* If we want to split day time each 15minutes */
minTime: '08:00:00',
maxTime: '19:00:00',
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
events: [
{
title: 'teste!',
start: new Date(y, m, 3),
className: 'bg-purple'
},
{
title: 'teste 2!',
start: new Date(y, m, 1),
className: 'bg-red'
},
{
title: 'See John',
start: '2014-05-05 10:00:00',
start: '2014-05-05 11:00:00',
className: 'bg-red'
}
],
The party that creates the reminders is "events:" , I would like to pull events from a PHP page and perform the same code creation process as events:
events: [
{
title: 'teste!',
start: new Date(y, m, 3),
className: 'bg-purple'
},
That is, I have a PHP that has a echo
and in it has the code above, jQuery has to pull and form this type of code. The problem is that I can not do this.