Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ContrastCo on Mar 24, 2009 02:14
open dhtmlx forum
Can't get DHTMLXTree working, fails with "Incorrect XML" and "reffers to non-existing parent"

Hello,

I'm evaluating DHTMLXTree and I can't get it to work, and I can't see where my code could be wrong. My test page is here:

http://contrastco.com/other/dtest/catedit.html

I'm trying to display a tree using one of the sample XML files that comes with DHTMLXTree. It ends up producing two errors and just displaying the names of each item in a plain list. Do you have any idea what the problem could be from looking at the page source? Thanks.
Answer posted by Alex (support) on Mar 24, 2009 05:15

Hello, 

It seems that http://contrastco.com/other/dtest/tree.xml doesn't exist. Please, check that the xml is correctly included.

Answer posted by ContrastCo on Mar 24, 2009 14:50
The XML file I'm using is http://contrastco.com/other/dtest/tree4.xml. You can see in the page source. But no matter which file I include, I get the same error. Do you have any idea why? Thanks.
Answer posted by ContrastCo on Mar 24, 2009 15:02
I see that I had two included XML files, and I removed the second include, so now the errors aren't showing up anymore, but I still get no images and no tree, just a straight vertical list. I know that there are images in the directory I specified. I put one of those images on the page to make sure. Do you know what could be wrong?
Answer posted by Alex (support) on Mar 25, 2009 03:27

Please, try to delete the following code:


  // set plus images
  tree.setImageArrays("plus","","","","open2.gif");
  //set minus images
  tree.setImageArrays("minus","","","","close2.gif");
  //set default node images
  tree.setStdImages("books.gif","books_open.gif","books_close.gif");


This code causes the problem with images.