Dear Helper,
javascript code:
dhtmlXTreeObject.prototype.getAllChecked=function(){
return this._getAllChecked("","",1);
}
dhtmlXTreeObject.prototype.getAllCheckedBranches=function(){
return this._getAllChecked("","",0);
}
dhtmlXTreeObject.prototype._getAllChecked=function(htmlNode,list,mode){
if(!htmlNode)htmlNode=this.htmlNode;
if(((mode)&&(htmlNode.checkstate==1))||((!mode)&&(htmlNode.checkstate>0))){if(list)list+=","+htmlNode.id;else list=htmlNode.id;}
var j=htmlNode.childsCount;
for(var i=0;i<j;i++)
{
list=this._getAllChecked(htmlNode.childNodes[i],list,mode);
};
if(list)return list;else return "";
};
<a href="javascript:void(0);" onclick="document.write (tree2.getAllChecked())">Get list of checked</a><br><br>
You may guess, the list is displayed in alert box. but i wanted to save and send them to next page(jsp).......
Plz help me with this.....or else tell me how to recieve the list to an array or arraylist or anyother.
Thanks in advance,
BeanBoy.