| Issue 1192: | Read an external string value inside fullcalendar | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I need to ad events that are on a XML file, coming from an external application, and I cannot use PHP, not supported for my server.
I am able to make a string from this xml, but when I try to put this string variable on the events:, it does not work.
Is there a way to make events to read a string?
var xml = "[{id:444,title:'Event4',start:'2011-11-21 14:00',end:'2011-11-21 16:00',backgroundColor:'orange',borderColor:'orange',allDay: false},{id:222,title:'Event2',start:'2011-11-22 14:00',end:'2011-11-22 16:00',backgroundColor:'orange',borderColor:'orange',allDay: false},{id:333,title:'Event3',start:'2011-11-23 14:00',end:'2011-11-23 16:00',backgroundColor:'orange',borderColor:'orange',allDay: false}]";
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: false,
events: xml
Thanks,
Leandro Guedes
Dec 7, 2011
#1
eugue...@gmail.com
Aug 14, 2013
`events` needs to accept a real JS array. so you need to parse your json before passing it in.
Status:
WontFix
|
|
| ► Sign in to add a comment |