7

jquery Full Calendar ( http://arshaw.com/fullcalendar/ ) を asp.net mvc アプリケーションに統合しようとしています。

この完全なカレンダーを使用して、SQL Server データベースをバックエンドとして使用してイベントを追加/編集/削除/表示する必要があります。

このフル カレンダーでイベントの追加/編集/削除を実装するサンプル コードを持っている人はいますか?

4

1 に答える 1

1
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);
}
于 2009-10-08T14:29:36.457 に答える