Hello Team,
As you people are providing a method to get �TEXT� attribute value from �ID�
/**
* @desc: return node text
* @param: itemId - id of node
* @type: public
* @return: text of item (with HTML formatting, if any)
* @topic: 6
*/
dhtmlXTreeObject.prototype.getItemText=function(itemId)
{
var temp=this._globalIdStorageFind(itemId);
if (!temp) return 0;
return(temp.htmlNode.childNodes[0].childNodes[0].childNodes[3].childNodes[0].innerHTML);
};
---------------------------------------------------------------------------
Want to know how to get the value of attribute �PATH� from my xml file
<?xml version="1.0" encoding="ISO-8859-1"?>
------------------------------------------------
Let me know how can I get the �PATH� value from my xml file from “ID”
Regards,
Nirmala Kolura
If you are using latest version of dhtmlxtree, you can use attached extension - just include it in addition to existing file, and you will be able to access any attribute as
var path = tree.getAttribute(“frames1”,“path”);
In older versions of dhtmlxtree attributes are not accessible, the only way to store additional info - userdata sections.
dhtmlxtree_attrs.zip (368 Bytes)