Categories | Question details Back To List | ||
"Error type: LoadXML" when using ajax load node in dhtmlxtree Hello, Sorry to bother you. I have a problem with ajax loading node in dhtmlxtree. It works fine with IE and firefox, but webkit browser such as safari and chrome. The tree is initialized by using javascript: <script type="text/javascript"> tree1=new dhtmlXTreeObject("a_tree","100%","100%",0); tree1.setImagePath(""); tree1.setOnClickHandler(nodeclick); tree1.setOnDblClickHandler(nodedoubleclick); tree1.setXMLAutoLoading("TREE:EXPA"); tree1.insertNewItem(0,"GO:0008150","GO:0008150 - biological_process (178)",0,0,0,0,"CHILD"); tree1.insertNewItem(0,"GO:0005575","GO:0005575 - cellular_component (161)",0,0,0,0,"CHILD"); tree1.insertNewItem(0,"GO:0003674","GO:0003674 - molecular_function (121)",0,0,0,0,"CHILD"); </script> When clicking expand icon, the following xml returned: <?xml version="1.0" encoding="UFT-8"?> <tree id="GO:0008150"> <item child="1" id="GO:0009987" text="GO:0009987 - cellular process (172)" im0="go_isa.gif" im1="go_isa .gif" im2="go_isa.gif"></item> <item child="1" id="GO:0051179" text="GO:0051179 - localization (82)" im0="go_isa.gif" im1="go_isa.gif" im2="go_isa.gif"></item> <item child="1" id="GO:0051234" text="GO:0051234 - establishment of localization (80)" im0="go_isa.gif" im1="go_isa.gif" im2="go_isa.gif"></item> <item child="1" id="GO:0050789" text="GO:0050789 - regulation of biological process (130)" im0="go_other .gif" im1="go_other.gif" im2="go_other.gif"></item> <item child="1" id="GO:0065007" text="GO:0065007 - biological regulation (143)" im0="go_isa.gif" im1 ="go_isa.gif" im2="go_isa.gif"></item> <item child="1" id="GO:0008152" text="GO:0008152 - metabolic process (131)" im0="go_isa.gif" im1="go_isa .gif" im2="go_isa.gif"></item> <item child="1" id="GO:0050896" text="GO:0050896 - response to stimulus (31)" im0="go_isa.gif" im1="go_isa .gif" im2="go_isa.gif"></item> <item child="1" id="GO:0048519" text="GO:0048519 - negative regulation of biological process (32)" im0 ="go_other.gif" im1="go_other.gif" im2="go_other.gif"></item> <item child="1" id="GO:0032501" text="GO:0032501 - multicellular organismal process (23)" im0="go_isa .gif" im1="go_isa.gif" im2="go_isa.gif"></item> <item child="1" id="GO:0032502" text="GO:0032502 - developmental process (12)" im0="go_isa.gif" im1="go_isa .gif" im2="go_isa.gif"></item> <item child="1" id="GO:0040007" text="GO:0040007 - growth (3)" im0="go_isa.gif" im1="go_isa.gif" im2 ="go_isa.gif"></item> <item child="1" id="GO:0002376" text="GO:0002376 - immune system process (4)" im0="go_isa.gif" im1="go_isa .gif" im2="go_isa.gif"></item> <item child="1" id="GO:0000003" text="GO:0000003 - reproduction (1)" im0="go_isa.gif" im1="go_isa.gif" im2="go_isa.gif"></item> <item child="1" id="GO:0048511" text="GO:0048511 - rhythmic process (22)" im0="go_isa.gif" im1="go_isa .gif" im2="go_isa.gif"></item> <item child="1" id="GO:0008371" text="GO:0008371 - obsolete biological process (1)" im0="go_isa.gif" im1="go_isa.gif" im2="go_isa.gif"></item> <item child="1" id="GO:0048518" text="GO:0048518 - positive regulation of biological process (45)" im0 ="go_other.gif" im1="go_other.gif" im2="go_other.gif"></item> </tree> I am really stuck here. Could you please give me any clues how to fix it? Thanks a lot. Chen Answer posted by Stanislav on Jul 03, 2009 14:46 >>When clicking expand icon, the following xml returned: If same data URL opened in separate window of browser - is browser parse it in correct way? So far there was no any Safari specific issues with XML parsing. If issue still occurs for you - please send an XML output , for which error occurs to support@dhtmlx.com ( the output posted above looks correct, but it encoding was changed during posting - so may be not really the same as original one ) Also, you can try to use debug version of dhtmlxcommon.js http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&q=2545&ssr=yes&s=dhtmlxcommon |