this.topNod.style has no properties

Hi

I got the following errors



this.parentObject has no properties

_createSelf()dhtmlxtree.js (line 832)

dhtmlXTreeObject(“smpltree_box”, “100%”, “100%”, 0)dhtmlxtree.js (line 152)

loadTreeSmpl()testDhtmlx.jsp (line 118)

onload(load )testDhtmlx.jsp (line 1)

[Break on this error] this.parentObject.appendChild(div);

this.topNod.style has no properties



setOnShowHandler()dhtmlXProtobar.js (line 9)

dhtmlXMenuBarObject(body, “120”, 0, “”, 1, “Edit Menu”, undefined)dhtmlXMenuBar.js (line 88)

dhtmlXContextMenuObject(“120”, 0, “Edit Menu”, undefined)dhtmlXMenuBar_cp… (line 8)

loadTree()testDhtmlx.jsp (line 68)

onload(load )testDhtmlx.jsp (line 1)

[Break on this error] function dhtmlXProtobarObject(){return this};dhtmlXProtobarObject.prototype.set…





my jsp page is



<%@ page language=“java” import=“java.util." pageEncoding=“ISO-8859-1”%>













Tree Test













































    

    

<!— update Size —>









    








    






        

            

                

                

                

            

        


                    


                        <div id=“a_tabbar”

                            class=“dhtmlxTabBar”

                            tabstyle=“scbr”

                            tabheight=“28”

                            imgpath="…/imgs/"

                            style=“width: 400px; height: 100%;”

                            

                            mode=“left”

                            offset=“3”

                            oninit=“a_tabbar.setTabActive(type+‘tab’)”

                            select=“doctab”>

                                


                                    


                                

                        


                    

                


                

                


                    

                


    


        

    








You have next line in your code
    >>tree_smpl=new dhtmlXTreeObject(“smpltree_box”,“100%”,“100%”,0);
which tries to create a tree inside element with ID = “smpltree_box” , but there is no container with such ID on page, so component fails and throw an error.