Here is my code:
Digicontacts V4.0 <style>
html, body {
width: 100%;
height: 100%;
overflow: hidden;
margin: 0px;
background-color: #EBEBEB;
}
</style>
<script>
var myLayout, myTree, myGrid, myFolders, myMenu, myToolbar, myScheduler;
var gl_view_type = "dlist";
var gl_view_bg = "";
function doOnLoad(){
myLayout = new dhtmlXLayoutObject(document.body, "3J");
myLayout.cells("a").setWidth(250);
myLayout.cells("a").setHeight(250);
myLayout.cells("a").setText("Digicontacts");
str = [
{ type:"button" , name:"form_button_1", label:"Calendrier", value:"Calendrier", width:"150", inputWidth:"150", inputHeight:"21", labelLeft:"-10", labelTop:"-10", inputLeft:"-10", inputTop:"-10", position:"absolute" },
{ type:"button" , name:"form_button_2", label:"Mes messages", value:"Mes messages", width:"150", inputWidth:"150", inputHeight:"21", labelLeft:"-10", labelTop:"-10", inputLeft:"-10", inputTop:"15", position:"absolute" },
{ type:"button" , name:"form_button_3", label:"Mes fichiers", value:"Mes fichiers", width:"150", inputWidth:"150", inputHeight:"21", labelLeft:"-10", labelTop:"-10", inputLeft:"-10", inputTop:"40", position:"absolute" }
];
myLayout.cells("a").attachForm(str);
myLayout.cells("b").hideHeader();
myLayout.cells("b").attachURL("dhtmlxScheduler_v30_110727/samples/03_extensions/19_map_view.html");
myLayout.cells("c").hideHeader();
myTree = myLayout.cells("c").attachTree();
myTree.setImagePath("codebase/imgs/");
myTree.loadXML('dhtmlxTree/samples/04_dataprocessor/php/get.php');
}
</div>
</body>
I would like to know how to hide myTree default, and when I click on the Calendar button opens myTree in myLayout “c”.
Sorry to write but I’m French and I do not speak English too.
Thank you in advance for your help