Hi Alex,
Present i am using dojo0.3 to display tree structure which will get data from servlet that will return jsonobjects.
now i need to migrate tree structure to dojo1.0.1 dijit tree.
can u help me out how to send the request to servlet and get the jsonobjects as a response
i tried the following code to get data from servlet.i am not able to place the data in Tree structure.
Dijit Tree Test
Tree with hardcoded root node (not corresponding to any item in the store)
if(item){
alert("Execute of node " + continentStore.getLabel(item)
+", population=" + continentStore.getValue(item, "population"));
}else{
alert("Execute on root node");
}
return "noteIcon";
output will be like this from server===>
{"label":"name","items":[{"label":"2200","name":"2200"}],"identifier":"name"}
please help me out to place the data.....
Thanks in advance
sorry here is the source code
Dijit Tree Test
Tree with hardcoded root node (not corresponding to any item in the store)