Hi, I tried to use jsTree to create a tree link in a jsp page. But it is just not working for me so far.
The jsTree version I used is v3.04, and my project is based on Spring MVC
The js code like:
<script type="text/javascript">
$(function () {
$('#tree').jstree({
'core' : {
'data' : {
'url' : 'bo.json'
}
}
});
});
</script>
The div in jsp page like:
<div id="tree" ></div>
The json file like:
[
{ "id" : "ajson1", "parent" : "#", "text" : "Simple root node" },
{ "id" : "ajson2", "parent" : "ajson1", "text" : "Root node 2" },
{ "id" : "ajson3", "parent" : "ajson2", "text" : "Child 1" },
{ "id" : "ajson4", "parent" : "ajson2", "text" : "Child 2" }
]
The result I got is just a loading sign, and the log in the firebug is 404 Not Found jquery.js (line 8102) HTTP Status 404 -
Your help will be greatly appreciated,
Sean