I have a page that returns JSON info from a cfc. The JSON is an array of structures that looks like this:
[
{
"allday": true,
"title": "event1",
"userid": 1,
"end": "",
"classname": "",
"editable": true,
"start": "2010-09-01",
"id": 1,
"url": ""
},
{
"allday": true,
"title": "event2",
"userid": 1,
"end": "",
"classname": "",
"editable": true,
"start": "2010-09-10",
"id": 2,
"url": ""
}
]
When I use:
$(document).ready(function() {
//Create JQuery connection to obj
$('#event').hide();
//Make event bubble draggable
$('#event').draggable();
$('#evBubbleClose').click(cleanEventBubble);
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
// put your options and callbacks here
dayClick: function(date, allDay, jsEvent, view) {
createEvent(date, allDay, jsEvent, view, this);
},
events: 'http://xxxxx/cfc/FullCalendarEvents.cfc?method=getEvents',
theme: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true
});
});
The events do not render. However, if I copy and paste the JSON in event: JSON Array here, it shows the events. What am I doing wrong that the events don't render from a feed?
以上就是Cannot render events on FullCalendar from JSON feed的详细内容,更多请关注web前端其它相关文章!