I need held to get tree working

Hi,

we are using the professional tree script 3.0.

Wenn I open the root (parent), which has also underlying parents and drag such an underlying parent (which also has childs (which are also sometimes parents)) to another parent, it seems that the event to release this folder (to its new position) by release the mouse button, is not called (???).
So, the item (only if it is a parent!!!) is still attached to the cursor.
When I then press the mouse button again, it works.
But: it also throws an exception “xmldoc is null”. This is happens in our ajax.js where the following method is called:

this.getSeverity = function() {
    elementByTagName = xmlDoc.getElementById("severity");
    if(elementByTagName != null && elementByTagName.length > 0) {
	    return elementByTagName[0].firstChild.data;
    }
	return 'error';
};

For ajax, we are using the standard ajax.js script which also contains an “XMLParser” function.
This is always called when the user click or drag something within the tree.

After spending much time in debugging, I found out that an AJAX request behind it (ajaxReq.responseXML) is empty… (null)
Thsi AJAX call a pre-check method in java while dragging the item (before putting it to its new

The sequence of doing this tree drag/drop is like this:

  1. Loading the tree root

  2. open the root folder (now for e.g. 3 underlying folders are displayed. These folders have a couple of childs)

  3. Drag for e.g. folder 2 to folder 3.

In the case of dragging childs (which have no more underlying items) to another parent folder, it works perfectly.

Any ideas, what these behaviour could cause ?

The String which calls the tree is the following:

Hi,

can we reproduce the problem in the samples from the Tree package ? For example, dhtmlxTree/samples/05_drag_n_drop/12_tree_drag.html

What drag-n-drop event is not called?

Hi,

I think there is an ajay error in the background which disrupt the drag and drop function.

But only when I drag prent folders. Not if a drag childs which have no underlyings…

I will have a look ath the example page, if I can reproduce it.

I dont think so :frowning:

When dragging such a folder these methods are called within the ajax.js:

var busyBox;
function XmlParser(aXmlDoc) {
var xmlDoc = aXmlDoc;
this.getResult = function() {
//var tmpRes = xmlDoc.selectNodes("//result")[0].firstChild.data;
if (xmlDoc!=null){
var tmpRes = xmlDoc.getElementsByTagName(“result”)[0].firstChild.data;
if(tmpRes == “true” || tmpRes == “TRUE” || tmpRes == “1”) {
return true;
} else {
return false;
}
}
};
this.getMessage = function() {
//return xmlDoc.selectNodes("//message")[0].firstChild.data;
if (xmlDoc.getElementsByTagName(“message”) != null ) {
return xmlDoc.getElementsByTagName(“message”)[0].firstChild.data;
} else {
return 0;
}
};
this.getSeverity = function() {
elementByTagName = xmlDoc.getElementsByTagName(“severity”);
if(elementByTagName != null && elementByTagName.length > 0) {
return elementByTagName[0].firstChild.data;
}
return ‘error’;
};

etc.

But xmldoc is null, which is not, when the tree is being built or when a child (without underlyings) is dragged…

weird…