【发布时间】:2012-02-24 04:56:33
【问题描述】:
我正在从我的服务器端页面 (getEvents.cfm) 返回以下字符串。我在 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'
}
]
但我在页面加载时收到错误“获取事件时出错!”
这是我用来获取事件的代码:
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...
]
【问题讨论】:
标签: jquery jquery-plugins coldfusion fullcalendar coldfusion-9