this.ParentObject error with dhtmlxtree

Hi



I’m trying to test my tree locally, as I have been unable to get the debug version of the common.js loading.

Ii have all files in the root, everything set up as it should be, but am receiving the following error:



this.parentObject is null

[Break on this error] this.parentObject=htmlObject;this.paren…ntextMenu)this._acMenu.hideContextMenu()



Here is the code I am using:













<div id=“treeBox” setImagePath=“imgs/csh_bluebooks/” xclass=“dhtmlxTree”

    style=“overflow:auto;width:450px; height:518px; background-color:#f5f5f5;border :1px solid Silver;”>

    





Why is it doing this?

Such error may occur if you are using incorrect ID of container object as part of tree’s constructor.

Attached sample uses the same init code ( dhtmlxtree 2.0 81107 ) and works correctly

1233770855.zip (38.6 KB)