Hi, I am trying to get some static examples of the xml to into the following code. This is for a proof of concept I’m putting together, but I am struggling to find a valid schema or accepted xml data into the following code (http://docs.dhtmlx.com/doku.php?id=tutorials:dhtmlx_2_0_step_by_step):
// initialse tree
myTree = myLayout.cells(“a”).attchTree(“0”);
myTree.setImagePath(“codebase/imgs/”);
myTree.setXMLAutoLoading(“xml/directoryTree.php”);
myTree.loadXML(“xml/directoryTree.php”);
From the above demo it is pointing to a php script. I just want to replace this with some simple example of static xml to show folders and associated files.
Any examples would be most appreciated.
Many thanks.
Keith.
Now I just need xml examples for the Grid content for files (it doesn’t matter what the content is):
// here we initialise grid which will be used for representation of the selected items
function showDList(dir){
myGrid = myLayout.cells(“b”).attachGrid();
myGrid.setImagePath(“codebase/imgs/”);
myGrid.setIconsPath(“icons/grid/”);
myGrid.setHeader(" ,Name,Size,Type,Modified");
myGrid.setColTypes(“img,ro,ro,ro”);
myGrid.setInitWidths(“40,250,50,100,*”);
myGrid.setColAlign(“center,left,right,left”);
myGrid.load(“xml/directoryContent.php?dir=”+dir);
//attach event that allows to open the selected item in the row on double click
myGrid.attachEvent(“onRowDblClicked”,function(id){
myTree.selectItem(id,true);
showFileContent(id);
})
myGrid.init();
gl_view_bg = “grid”;
}