Anyone familiar with JQuery FileTree

Anyone familiar with JQuery FileTree

Hi Guys,

As my title, des anyone have any experience implementing/using the JqueryFileTree (found at http://abeautifulsite.net/notebook/58) to get a mysql database listed as folders.

I've got a custom connecter written, which display any folders as folders and files as file which works fine. However When I click on one of the folders, it opens the entire root folder within the subfolder that I have just used. So for example, I have 3 folders in the root APPLE, ORANGE and PEACH, When I click on ORANGE, it expands with APPLE, ORANGE and PEACH.....and so it goes on until I run out of screen real estate.

The server side code I am using is php;

     If($type=="FOLDER"){
     echo '<li class="directory collapsed"><a href="#" rel="">'.$rsContent_row->getField('Title',0).'</a></li>';
        } else {
     echo '<li class="file ext_ppt"><a href="#" rel="">'.$rsContent_row->getField('Title',0).'</a></li>';
     } ?>


and my jquery

         $(document).ready( function() {
            
            $('#fileTreeDemo_1').fileTree({ root: '/', script: 'tree_ul.php' }, function(file) {
               alert(file);
            });
            
         });


Hoping desperately someone can help me.

Cheers

Jalz