I am returning the following string from my server side page (getEvents.cfm). I am working in ColdFusion.
[
{
title: 'Event1',
start: '2012-02-02',
end: '2012-02-02',
allDay: 'no'
},
{
title: 'Event2',
start: '2012-02-03',
end: '2012-02-03',
allDay: 'no'
}
]
But I get an error on page load ‘there was an error while fetching events!’
Here is the code that I am using to fetch events:
eventSources: [
// your event source
{
url: '../getevents.cfm',
type: 'POST',
data: {
custom_param1: 'something',
custom_param2: 'somethingelse'
},
error: function() {
alert('there was an error while fetching events!');
},
color: 'yellow', // a non-ajax option
textColor: 'black' // a non-ajax option
}
// any other sources...
]
First of all
allDayshould be true/false not no/yes. Second, the return string should look like this: