$('#container').jstree({
'core' : {
'data' : {
"url" : "//www.jstree.com/fiddle/"
}
}
});
/*
This demo uses CORS (requests data from jstree.com, while you are on jsfiddle.net).
In order not to overcomplicate things it will not work on IE8 / IE9.
HOWEVER IF REQUESTING FROM THE SAME DOMAIN THERE WILL BE NO PROBLEM IN THOSE BROWSERS.
CORS AND JSONP WILL ALSO WORK FINE IN THOSE BROWSERS TOO, BUT IT IS OUT OF THE SCOPE OF THIS DEMO
*/
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!