No limits to innovation
  • Home
  • LaTeX
  • Loggable
  • iOS Apps
    • myMutuo
  • Blog

Blog

Scossa di #terremoto a #Pavia, pochi istanti fa ... brrr! (1 week ago)

Home / Blog / prototype File Tree: new connector

prototype File Tree: new connector

Posted on: 01-17-2009 Posted in: Informatica, Siti web

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!

  • Popular Posts
  • Related Posts
  • iOS Apps
    iOS Apps
  • jQuery Form Validator plugin
    jQuery Form Validator plugin

Leave a Reply

Fare clic qui per annullare la risposta.

Tag cloud

algorithm Apple Apple Store Bayes C64 Corrado Guzzanti Dante's Inferno DRM facebook file tree Flying Spaghetti Monster Fotografia giapponese Guild Wars html iPad iphone iPhone 4 iPod Java jQuery L'Aquila library log4j Loggable Lorenzo manfrotto mathematics Mozilla Pastafarianesimo plugin prototype PS3 pulp Python recursion rpg Ruby on Rails sito spam terremoto Thunderbird Ubisoft validator Videogiochi
When everything else just does not work, try this.
© 2005-2011 Daniele Di Bernardo
  • LaTeX
  • Loggable
  • iOS Apps
  • Blog
TwitterStumbleUponRedditDiggdel.icio.usFacebookLinkedIn