views:

11

answers:

0

I am using this jquery plugin: jqueryFileTree availbale at http://abeautifulsite.net/blog/2008/03/jquery-file-tree/

I have managed to integrate it in my page but now I want to monitor whenever a user clicks on a folder, an input should contain the value representing the folder's path. I need this to be done so to pass it to the uploadify jquery plugin so that the user can use the fileTree to browse through his folders and use uploadify to upload his files. The way the fileTree works is by having a div and in the header of the html this code:

<script type='text/javascript'>
  $(document).ready( function() {
    $('#fileTree').fileTree({ root: '../../' }, function(file) {
        alert($('div.currentDir').attr('path'));
    });
});

If you know alternative ways of doing what I'm trying to accomplish please suggest them.