dear support team,
i have one problem with dhtmlxTree and dataProcessor,
when new child inserted at the first time, its work great,
the second time new child inserted, dataProcessor doesn’t send anything to server
the third, dataProcessor send data to server but with strange value
here is my code
newNode=prompt('Enter the Folder Name');
if(newNode)
{
parentId=aTree.getSelectedItemId();
//alert(parentId);
aTree.insertNewChild(parentId,'ch'+parentId,newNode,0,0,0,0,'');
}
break;
for example, i select a node with id=4, then i insert new child, i capture post data using firebug, then here is the result
//first time, insert new child with text A17, success
ch4_tr_id=ch4&ch4_tr_pid=4&ch4_tr_order=6&ch4_tr_text=A17&ch4_!nativeeditor_status=inserted&ids=ch4
//response
//<data><action type="inserted" sid="ch4" tid="30"></action></data>
//second, insert new child with text A18, dp didn't send anything
//third, insert new child with text A19
ch4_1303002703375_tr_id=ch4_1303002703375&ch4_1303002703375_tr_pid=4&ch4_1303002703375_tr_order=8&ch4_1303002703375_tr_text=A19&ch4_1303002703375_!nativeeditor_status=inserted&ids=ch4_1303002703375
//response
//<data><action type="inserted" sid="ch4_1303002703375" tid="31"></action></data>
//fourth, insert new child with text A20
ch4_1303002714047_tr_id=ch4_1303002714047&ch4_1303002714047_tr_pid=4&ch4_1303002714047_tr_order=9&ch4_1303002714047_tr_text=A20&ch4_1303002714047_!nativeeditor_status=inserted&ids=ch4_1303002714047
//response
//<data><action type="error" sid="ch4_1303002714047" tid="ch4_1303002714047"></action</data>
when using alert, it’s show correct selected id, why dataProcessor send different value?