Temp has no properties


Thanks for the amazing dhtmlx components.

I am using standard edition of dhtmlxtree. But met a very strange problem.

I created a test page and use jsp to fetch subnodes:

DHTML JavaScript Tree samples

By using debugging tool(such as firebug), I saw the AJAX request successfully fetched back data in xml. But it always show error “temp has no properties” and the node could not be expanded. But if I copy the response into an xml file and change to tree.setXMLAutoLoading(“manuallycreatedxml.xml”). It worked.

Could anybody give me any clue?

Thank you very much.


There are few additional requirements to process XML correctly

a) Response must contain correct content type ( ctitical for IE7), for JSP it must be something similar to next
<%@ page language=“java” contentType=“text/xml; charset=ISO-8859-1”  pageEncoding=“ISO-8859-1” %>

b) For FF - there must not be any whitespaces before starting <?xml tag ( or starting <?xml tag must absent at all )