Hi, I'm new to jquery and I'm been trying to learn by jumping head first into a few simple projects that I need for work. I'm working on a simple MVC project where I would like to present a file system and some files to the end user. It's pretty simple concept.
So using NuGet I downloaded and installed jquery 1.9.1 and jstree 3.0. I created a simple page and controller and added the reference to both jquery and jstree, created a simple ready method on a div object, and when it hits that line it dies with Object doesn't support property or method 'jstree'. It's acting like the file isn't even loaded (though I am seeing it as part of the file in the debugger).
I know this crosses more than just jquery. Anyway, here is some code and if anyone can tell me if there is something simplistically wrong with it, it would be greatly appreciated. Environment is VS2013
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<div id="MainTree"></div>
<script src="~/Scripts/jquery-1.9.1.js" type="text/javascript"></script>
<script src="~/Scripts/jstree.js" type="text/javascript"></script>
<script src="~/Scripts/jquery.cookie.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
Refresh();
});
function Refresh() {
$('#MainTree').jstree();
}
</script>