Question: Display event in jQuery Fullcalendar using ColdFusion

Question

Display event in jQuery Fullcalendar using ColdFusion

Answers 0
Added at 2016-12-30 08:12
Tags
Question

I have a problem displaying events(timesheet_desc) in full calendar. What could the issue be?

var timesheet_date = new Date();
var d = timesheet_date.getDate();
var m = timesheet_date.getMonth();
var y = timesheet_date.getFullYear();

$('#calendar').fullCalendar({
    header: {
        left: 'prev,next today',
        center: 'title',
        right: 'month'
    },

    dayClick: function(timesheet_date, timesheet_desc, view) {
        var ts_date = timesheet_date.toISOString().slice(0, 10);
        window.location.href = 'user_displayreport.cfm?timesheet_date='+ts_date;

    },
    selectable: true,
    select: function(timesheet_date, timesheet_desc, view) {  
        $('#basicModal').modal();
    },
    editable: true,
    timesheet_desc: {
        url: 'bgprocess_calendar.cfm',
        type: 'POST',
        data: {
            timesheet_id: 'timesheet_id',
            timesheet_desc: 'timesheet_desc'
        },
        error: function() {
            alert('there was an error while fetching activity!');
        },
        color: 'yellow',   // a non-ajax option
        textColor: 'black' // a non-ajax option
    }
});
Answers
Source Show
◀ Wstecz