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!

10.780 thoughts on “prototype File Tree: new connector

  1. I have been browsing online more than three hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. Personally, if all web owners and bloggers made good content as you did, the net will be much more useful than ever before.

  2. I’m pretty pleased to discover this page. I need to to thank you for your time for this fantastic read!! I definitely savored every bit of it and I have you bookmarked to look at new things on your site.|

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

  4. Wow that was odd. I just wrote an really long comment but after I clicked submit my comment didn’t appear. Grrrr… well I’m not writing all that over again. Anyhow, just wanted to say superb blog!|

  5. Greetings! This is my first comment here so I just wanted to give a quick shout out and tell you
    I truly enjoy reading through your blog posts. Can you recommend any other
    blogs/websites/forums that deal with the same subjects?
    Thanks a ton!
    web page

  6. When I initially commented I seem to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I receive 4 emails with the exact same comment. There has to be an easy method you can remove me from that service? Many thanks!

  7. You’re so cool! I do not suppose I’ve read a single thing like that before. So wonderful to find someone with some genuine thoughts on this subject matter. Seriously.. thanks for starting this up. This website is one thing that is required on the web, someone with a little originality!

  8. Oh my goodness! Awesome article dude! Many thanks, However I am having troubles with your RSS. I don’t know the reason why I can’t join it. Is there anybody getting identical RSS issues? Anyone who knows the answer will you kindly respond? Thanks!!

  9. Excellent post. I used to be checking continuously this blog and I’m impressed! Extremely helpful info particularly the ultimate part 🙂 I deal with such info much. I used to be seeking this particular information for a very lengthy time. Thank you and best of luck. |

  10. Pretty section of content. I just stumbled upon your site and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Anyway I’ll be subscribing to your augment and even I achievement you access consistently quickly.|

  11. Just wish to say your article is as astonishing. The clearness in your post is simply cool and i can assume you’re an expert on this subject. Well with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please carry on the rewarding work.|

  12. It’s appropriate time to make a few plans for the longer term and it is time to be happy. I have learn this submit and if I may just I desire to suggest you some attention-grabbing issues or advice. Maybe you could write next articles regarding this article. I desire to read even more issues approximately it!|

  13. Heya! I understand this is sort of off-topic but I needed to ask. Does operating a well-established website like yours require a massive amount work? I’m completely new to operating a blog but I do write in my journal daily. I’d like to start a blog so I can share my personal experience and feelings online. Please let me know if you have any kind of suggestions or tips for new aspiring bloggers. Appreciate it!|

  14. Thanks for your personal marvelous posting! I certainly enjoyed reading it, you happen to be a great author. I will remember to bookmark your blog and will come back very soon. I want to encourage you to definitely continue your great work, have a nice evening!|

Lascia un commento

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