Cannot render events on FullCalendar from JSON feed

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准