I am trying to get fullcalendar to load using the C# MVC framework. I've added these lines to my _Layout.cshtml in the 'Shared' folder
@Styles.Render("~/Public/fullcalendar/fullcalendar.css")
@Scripts.Render("~/Public/fullcalendar/lib/jquery.min.js")
@Scripts.Render("~/Public/fullcalendar/lib/moment.min.js")
@Scripts.Render("~/Public/fullcalendar/fullcalendar.js")
and I've added this to the head section of an Index.cshtml for the view I want to show the calendar
<script type="text/javascript">
$(document).ready(function () {
$('#calendar').fullCalendar({
});
});
</script>
Just for giggles I replaced the $('#calendar'... bit with and alert("test") and it popped up just fine.
In the chrome console it gives me this error
Uncaught TypeError: undefined is not a function Index:57
(anonymous function) Index:57
j jquery.min.js:2
k.fireWith jquery.min.js:2
n.extend.ready jquery.min.js:2
I jquery.min.js:2
And this is on line 57 on Index
So for some reason I think fullcalendar isn't initializing or getting loaded? I'm not really sure since its my first time using web languages like this. Does anyone have suggestions or know how to fix this issue? Any help would be appreciated.
EDIT I have also tried going to the URL in the generated html to make sure the files were web accessible and all of the .js and .css files in _Layout.cshtml loaded