prototype File Tree: new connector

Overview

I really want to thank Ben Duffin, who kindly sent me an e-mail with a new connector for the prototype File Tree plugin. This one makes possible to list directories and files from a remote FTP directory.

Download

You can download the new connector with the new v. 1.1 of the plugin (17 January 2009).

Usage

The usage of the connector is really simple. First of all, in the file prototypeFileTreeFTP.php you have to update the variables at lines 33-35 ($ftp_server, $ftp_user and $ftp_pw) with the address of the remote FTP server, the username and its password. The javascript code has to be updated to make it refer to the new connector, passing it a GET variable, isstart, like this:

var startRemoteDir = 'public_html';

$('myElementId').fileTree({
  root: startRemoteDir,
  script: 'prototypeFileTreeFTP.php?isstart='+startRemoteDir,
  folderEvent: 'click',
  loadMessage: 'Loading remote file list...'
}, callbackFunction);

function callbackFunction(file) {
  // My custom code here for file selection
}

Please make use of the new connector and let me know what you think of it. Once again, thank you Ben!

724 thoughts on “prototype File Tree: new connector

  1. I simply want to tell you that I am newbie to weblog and definitely savored this website. More than likely I’m planning to bookmark your site . You definitely come with awesome writings. Many thanks for revealing your website.

  2. Excellent beat ! I wish to apprentice while you amend your site, how can i subscribe for a blog web site?
    The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear
    idea

  3. I just want to say I’m newbie to blogs and absolutely loved you’re website. Most likely I’m going to bookmark your site . You certainly have amazing article content. Kudos for revealing your webpage.

  4. I just want to say I am beginner to blogging and truly liked you’re blog. Likely I’m planning to bookmark your site . You surely come with terrific stories. Thanks a bunch for sharing your webpage.

  5. Yesterday, while I was at work, my cousin stole my iPad and tested to see if it can survive a 25 foot drop, just so she can be a youtube sensation. My iPad is now destroyed and she has 83 views. I know this is totally off topic but I had to share it with someone!

  6. I’m often to running a blog and i actually admire your content. The article has really peaks my interest. I am going to bookmark your web site and maintain checking for new information.

  7. I’m amazed, I must say. Seldom do I come across a blog that’s equally educative and interesting, and without a doubt, you’ve hit the nail on the head. The issue is something that not enough folks are speaking intelligently about. I am very happy that I found this in my hunt for something relating to this.

  8. Simply want to say your article is as amazing.
    The clearness in your post is just great and i can assume you are an expert on this
    subject. Fine with your permission let me to grab your RSS feed to keep
    up to date with forthcoming post. Thanks a million and please carry on the rewarding
    work.

  9. Hey there, You have done a fantastic job. I’ll definitely digg it and personally recommend to my friends. I’m confident they’ll be benefited from this website.

  10. Good day! I could have sworn I’ve visited your blog before but after going through many of the articles I realized it’s new to me. Anyhow, I’m certainly happy I came across it and I’ll be book-marking it and checking back regularly!

  11. Howdy! I could have sworn I’ve visited this site before but after going through many of the articles I realized it’s new to me. Anyhow, I’m certainly delighted I found it and I’ll be bookmarking it and checking back regularly!

  12. I needed to create you this tiny observation to finally say thanks over again considering the incredible concepts you have featured on this site. This is quite wonderfully open-handed of people like you to deliver unhampered all many of us could have made available as an ebook to help with making some money on their own, particularly given that you could have tried it in case you desired. The tactics also acted to be the easy way to understand that most people have the identical zeal just like mine to know the truth a great deal more in respect of this condition. I think there are lots of more enjoyable moments ahead for individuals who discover your site.

  13. Spot on with this write-up, I honestly think this website needs far more attention. I’ll probably be back again to read through more, thanks for the information!

  14. Having read this I thought it was extremely enlightening. I appreciate you spending some time and effort to put this content together. I once again find myself spending a lot of time both reading and commenting. But so what, it was still worthwhile.

  15. I’m more than happy to find this great site. I wanted to thank you for ones time due to this wonderful read!! I definitely liked every little bit of it and i also have you saved to fav to check out new stuff on your web site.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *