Please help me find what is happening in the code. I used fullcalendar.js for the calendar event.
I want to show events on the calendar. below is my code.
$(document).ready(function() {
$(window).resize(function() {
$('#calendar').fullCalendar('option', 'height', get_calendar_height());
});
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
var nevent = [];
nevent = document.getElementById('<%=hdnevent.ClientID%>').value;
var calendar = $('#calendar').fullCalendar({
theme: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay',
width: get_calendar_width
},
width: get_calendar_width,
height: 480,
selectable: true,
selectHelper: true,
slotMinutes: 15,
allDayDefault: false,
events: nevent
});
});
nevent Value:
[{ id: '2302', title: 'XXX', start: '4/4/2014 12:00:00 AM', end: '4/4/2014 12:00:00 AM', allDay: true, url: 'xxx'}]
but it does not appear on the calendar. if I gave the right to assign a value, it displays the event (Example: Event: [{ id: '2302', title: 'XXX', start: '4/4/2014 12:00:00 AM', end: '4/4/2014 12:00:00 AM', allDay: true, url: 'xxx'}])
pls kindly help me fix my error.