thz for replying me. and here is the code
onBeforeExpand: function(node){
$('#tree').combotree('tree').tree('options').url = 'getdata2.php?id='+node.id;
}
But:
Is there a way to change the url({ when we expand the parent('Folder'), so the current url('getdata1.php') will be changed to getdata2.php. After we expand the child('Sub Folder 1'), we expect it to change the url('getdata3.php') and get child('File 11'); }) ?.
// just an example
<ul id="tt" class="easyui-tree">
<li>
<span>Folder</span>
<ul>
<li>
<span>Sub Folder 1</span>
<ul>
<li>
<span><a href="#">File 11</a></span>
</li>
<li>
<span>File 12</span>
</li>
<li>
<span>File 13</span>
</li>
</ul>
</li>
<li>
<span>File 2</span>
</li>
<li>
<span>File 3</span>
</li>
</ul>
</li>
<li>
<span>File21</span>
</li>
</ul>
Sorry for my poor english, plz help me

!!!