Good afternoon, I'm trying to load an event into FullCalendar. The problem is as follows
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'today',
center: 'prev, title, next',
right: 'month,basicWeek,basicDay'
},
eventClick: function(event) {
$('#modalTitle').html(event.title);
$('#modalBody').html(event.description);
$('#eventUrl').attr('href',event.url);
$('#fullCalModal').modal();
return false;
},
navLinks: true, // can click day/week names to navigate views
editable: true,
eventLimit: true, // allow "more" link when too many events
events:[
<?php include('process.php') ?>
]
});
});
Process.PHP
<?php
$title = "Jose";
$start = "2016-11-01";
echo "{
title: '$title' ,
start: '$start'
}";
?>
This way I can load, but would like to know how I do calling a JSON? I tried in a number of ways ($ .getJson, $ .get, Json.parser (), etc ...) Does anyone have any tips?