tree load dynamically on button click

Hi,



I am using dhtmlXtree in my application,

In my JSP I have a button called LOADTREE, I want to load the tree onclick of this button,

So, how do I load tree dynamically on click of a button?





here is my code:






















If I understood correctly the code must look like


<input type=“button” name=“somw” value=“load” onclick=“load_tree();”>