Unable to implement FullCalendar into ASP.NET MVC4 application getting: 0x800a138f - Microsoft JScript runtime error: Object expected
I got the code from the website but am getting the above error. Here is the code:
{
ViewBag.Title = "Calendar";
}
<link rel='stylesheet' href='Content/fullcalendar.css' />
<script src='lib/jquery.min.js'></script>
<script src='lib/moment.min.js'></script>
<script src='fullcalendar/fullcalendar.js'></script>
<h2>Calendar</h2>
<div id="calendar" style="width:65%"></div>
<script type="text/javascript">
$(document).ready(function () {
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultView: 'agendaDay',
editable: true,
allDaySlot: false,
selectable: true,
slotMinutes: 15,
// put your options and callbacks here
})
});
</script>
All of the files exist as I installed the NuGet packages.
User contributions licensed under CC BY-SA 3.0