Hi JAKE,
I have downloaded a File Tree plugin, the links for which are as under :
What I want is to be able to download the file by clicking on it as shown in the picture attached.
According to the documentation is says :
QUOTE
When a file is selected, jQuery File Tree passes the filename back as a string. The easiest way to capture and handle this is by using an anonymous function. If you want to pass the selected filename to a function you create called
openFile()
, your code will look like this:
function openFile(file) { } $(document).ready( function() { $('#container_id').fileTree({ [options] }, function(file) { openFile(file); });});
UNQUOTE
What I am doing right now is as follows which opens an alert showing location and name of the file I want to change it download :
$('#fileTreeDemo_3').fileTree({ root: '/var/www/html/reports/',
script: 'jqueryFileTree.php',
folderEvent: 'click',
expandSpeed: 750, collapseSpeed: 750, expandEasing: 'easeOutBounce',
collapseEasing: 'easeOutBounce', loadMessage: 'Loading...' },
function(file) {
alert(file);
});
I am sure you can do that - PLEASE help !!!
Thanks JAKE !!
Rgds.
Tonya