Hello,
I am new to jsTree and am having problems with a very simple example.
My html:
<ul id='categories'>
<li><a href"/Browse/1">Category 1</a>
<ul>
<li><a href="/Browse/3">Subcategory 1.1</a></li>
</ul>
</li>
<li><a href="/Browse/2">Category 2</a>
<ul>
<li><a href="/Browse/4">Subcategory 2.1</a></li>
</ul>
</li>
</ul>
Code:
<script type='text/javascript'>
$(document).ready(function() {
$('#categories').jstree({ 'plugins' : 'html_data' });
});
</script>
Error:
Line: 1694
Error: Exception thrown and not caught
It appears as though jsTree is trying to call the cookie plugin which I do not have installed.
In my case, I do not need or want cookies.
How can I run jsTree without them?
UPDATE:
I tried this plus various combinations of plugins:
<script type='text/javascript'>
$(document).ready(function() {
$.jstree.defaults.plugins = ['ui', 'crrm', 'themes', 'html_data'];
$('#categories').jstree();
});
</script>
The result now is a blank page. The error has gone away though.
Thank you,
Rick