var g = json.st.length; alert("displaying values: " + g); var menu = new dhtmlXMenuObject("menuObj"); menu.attachEvent("onTouch", menuTouch); { for (i = ((json.st.length) - 1); i >= 0; i--) { alert("displayed data: " + json.st); menu.addNewSibling(null, "a", json.st[i], false); { // if (json.r.length == 0) { // foreach (menu.addNewChild) // foreach(menu.addNewChild) { menu.addNewChild("a", 0, "new", json.r[i], false); } } alert("displaying data: " + json.r); } what i have use for displaying child item Pls. give the for loop to add the every child item to its parent item i am getting struggle last two days...? Thanks you
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)