I am trying to run the basic demo "ajax demo" as seen below however not loading the file, the load icon on the page just keeps on churning.
// ajax demo
$('#ajax').jstree({
'core' : {
'data' : {
"url" : "./root.json",
"dataType" : "json" // needed only if you do not supply JSON headers
}
}
});
Can somebody tell me what I need to do to make it work?
Also the lazy demo was not working either and I had the thought of mine to change the address from www.jstree.com/fiddle/?lazy to https://www.jstree.com/fiddle/?lazy is that a network/firewall issue?
NB: Both the local file and the server file are identical. I swear I have not changed anything in the Index.html files other than the references to jQuery and (which I am using a local downloaded version) and jsTree (as I moved the files out of the zip download to my project and I used a slight refined folder structure). And all other demo's in the index.html file are working. I have a separate folder called Demo hanging off the project root folder and it contains only the index.html and the root.json file. So is ./root.json the wrong path??