I try the List sample:
http://127.0.0.1:8015/samples/dhtmlxList/03_loading/02_load_json.html
and place a callback function in the loading method as follow:
Loading JSON data from file
it does not work, but I try another sample that loading the xml file, it works fine:
Loading data from XML file function doOnLoad() { myList = new dhtmlXList({ container:"data_container", template:"#name##address##city#", type:{ height:"auto" } }); // I edited the code here myList.load("../common/list.xml",function(text){ alert(text);
},"xml");
}
</script>
<style type="text/css">
p{
font-size:14px;
margin: 0.3em;
}
</style>
Loading XML data from file
why? is that a bug here?