我正在尝试将jquery Full Calendar (http://arshaw.com/fullcalendar/)集成到我的asp.net mvc应用程序中。
我需要使用这个完整的日历来添加/编辑/删除/显示事件,使用sql server数据库作为后端。
有没有人有实现这个完整日历的添加/编辑/删除事件的示例代码?
发布于 2009-10-08 14:29:36
function createCalendar() {
var d = new Date();
var y = d.getFullYear();
var m = d.getMonth();
$('#calendar').fullCalendar({
editable : false,
events : 'urltoevents'
aspectRatio : 1.5,
header : {
left : false,
center : 'title',
right : 'prev,next today'
},
eventClick : function(event) {
handle the click event.
}
});
};
function removeEvent(id){
$('#calendar').fullCalendar('removeEvents', id);
}
function updateEvent(id, title){
var event = $('#calendar').fullCalendar('clientEvents', id);
event.title = title;
$('#calendar').fullCalendar('updateEvent', event);
}https://stackoverflow.com/questions/1538071
复制相似问题