Hi,
I am currently evaluating the component in order to productize it however getting error
TypeError: dhtmlx.url is not a function
on tree. The initial static node ios getting displayed proper;ly , the issue is around dynamic loading.
Here are the sample code
JS include sequence
dhtmlxcommon.js
dhtmlxlayout.js
dhtmlxContainer.js
dhtmlxtree.js
dhtmlx.js
dhtmlxtree_xw.js
dhtmlxtree_json.js
dhtmlxmenu.js
dhtmlxmenu_ext.js
Execution
[code]dhxLayout = new dhtmlXLayoutObject(“treeboxbox_tree”, “1C”);
dhxTree = dhxLayout.cells(“a”).attachTree();
dhxLayout.cells(“a”).setText(“Organizational Units”);
dhxLayout.cells(“a”).hideHeader();
var menuData = {parent: "objMenu", context:true, icon_path:"BuiltIn/Common/Images/", items: [{ id: "refresh", text: "<%=sRefreshMenuCaption%>", img: "reload.gif"}]} ;
dhxContextMenu = new dhtmlXMenuObject(menuData);
dhxContextMenu.attachEvent("onClick", onMenuClick);
dhxTree.enableContextMenu(dhxContextMenu);
dhxTree.setSkin('BuiltIn/Common/Images/csh_dhx_skyblue');
dhxTree.setImagePath("BuiltIn/Common/Images/csh_winstyle/");
dhxTree.setDataMode("json");
dhxTree.setEscapingMode("utf8")
dhxTree.enableKeyboardNavigation(true);
dhxTree.setXMLAutoLoading("BuiltIn/Common/Scripts/Dhtmlx/Tree/GetTreeJSON.asp");[/code]
The issue is around
this.load(c+dhtmlx.url(c)+"uid="+a+"&id="+this._escape(e))
just for verification if i update this code to in dhtmlx.js
this.load(c+"uid="+a+"&id="+this._escape(e))
everything seems to be working perfectly.
Any clue?
Thanks in advance.