Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Yvan on Oct 03, 2008 06:22
open dhtmlx forum
Can't get dhtmlxtree working in Mozilla/Firefox nor in Chrome

In chrome:

Nothing at all


In Firefox:

The next error ocured :<br> <strong>uncaught exception: [Exception... "Cannot convert WrappedNative to function" nsresult: "0x8057000d (NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN)" location: "JS frame :: https://localhost:8443/treecontroller?Action=LoadTree&jadapee.actionContext=7 :: showInfoBox :: line 828" data: no]</strong> in <strong></strong> at line <strong>0</strong>


Tree 0
parentObject=[object HTMLDivElement]
_itim_dg=true
dlmtr=,
dropLower=false
xmlstate=0
mytype=tree
smcheck=true
width=100%
height=100%
rootId=0
childCalc=null
def_img_x=18px
def_img_y=18px
def_line_img_x=18px
def_line_img_y=18px
_dragged=
_selected=
style_pointer=pointer
_aimgs=true
htmlcA= [
htmlcB=]
lWin=[object Window]
cMenu=0
mlitems=0
dadmode=0
slowParse=false
autoScroll=true
hfMode=0
nodeCut=
XMLsource=/treecontroller?Action=GetDhtmlxTreeXML&jadapee.actionContext=7
XMLloadingWarning=0
_idpull=[object Object]
_pullSize=1
treeLinesOn=true
tscheck=false
timgen=true
dpcpy=false
_ld_id=null
_oie_onXLE=
imPath=../../images/
checkArray=iconUncheckAll.gif,iconCheckAll.gif,iconCheckGray.gif,iconUncheckDis.gif,iconCheckDis.gif,iconCheckDis.gif
radioArray=radio_off.gif,radio_on.gif,radio_on.gif,radio_off.gif,radio_on.gif,radio_on.gif
lineArray=line2.gif,line3.gif,line4.gif,blank.gif,blank.gif,line1.gif
minusArray=minus2.gif,minus3.gif,minus4.gif,minus.gif,minus5.gif
plusArray=plus2.gif,plus3.gif,plus4.gif,plus.gif,plus5.gif
imageArray=leaf.gif,folderOpen.gif,folderClosed.gif
cutImg=0,0,0
cutImage=but_cut.gif
dragger=[object Object]
htmlNode=[object Object]
allTree=[object HTMLDivElement]
XMLLoader=[object Object]
dhx_SeverCatcherPath=
_onEventSet=[object Object]
ehlt=true
dADTempOff=false
dragAndDropOff=true
_ddronr=true
---------------------
<DIV/>
---------------------
Node: 0 Childs: 0


Answer posted by Support on Oct 03, 2008 08:16
There are two known issue with Google Chrome and dhtmlxtree, but none of them is critical ( they cause visual distortion of checkboxes )

According to the provided error dump, the tree has loaded provided url, but it was not recognized as valid XML. 
Please be sure that server side response from server was a valid XML and it has not unnecessary whitespaces before <?xml declaration. 

You can try to use debug version of dhtmlxcommon.js 
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Common_Problems_in_Grid.html#grid_art_comprob
Answer posted on Oct 03, 2008 08:33
Thanks, problem solved.

It was me doing some IE-specific javascripting which prevented the tree of being shown at all;