I'm using this jQuery Full Calendar:
http://arshaw.com/fullcalendar/
According to their documentation, I can load JSON event data and it will display accordingly.
http://arshaw.com/fullcalendar/docs/event_data/Event_Source_Object/
Here is what my ActionMethod is returning (obtained via Firebug):
[{"url":"/Eventos/Ver/1","start":1352073600,"end":1352074800,"title":"Evento #1"}]
I'm kind of stumped as to why the calendar won't load any of the events my code returns. Could it be because my JSON isn't formed the way the library expects it to? Any suggestions?
My server is returning a 200 OK server response so that's not an issue.
Here is the jQuery code I use to load the events:
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$('#calendar').fullCalendar({
// put your options and callbacks here
events: '@Url.Action("GetEvents","Eventos")',
header: {
left: 'title',
center: '',
right: 'prev,next'
},
monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto',
'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
dayNames: ['Domingo', 'Lunes', 'Martes', 'Miercoles', 'Jueves', 'Viernes', 'Sabado'],
dayNamesShort: ['Dom', 'Lun', 'Mar', 'Mie', 'Jue', 'Vie', 'Sab']
});
})
</script>