
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jstree/3.0.9/themes/default/style.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/jstree/3.0.9/jstree.min.js"></script>


<div id="container"></div>
<script>
/*$(function() {
  $('#container').jstree({
    'core' : {
      'data' : {
        "url" : "build.php",
        "dataType" : "json" // needed only if you do not supply JSON headers
      }
    }
  });
});*/

$(function() {

$('#container').jstree({
            'core': {
                'data': {
                    'url': "build.php",
                    'type': 'POST',
                    'dataType': 'JSON',
                    'contentType':'application/json;'
                    'data': function (node) {
                        return { 'd_id': <?php=$DOC['d_id']?>};
                    }
                }
            }
        });
});		
		
</script>