jjAnswerFTPfile and jjAnswerFTPfolder

Josh Mellicker josh at dvcreators.net
Thu Aug 23 20:54:14 EDT 2007


Answer file and answer folder are great ways for the user (or coder)  
to browse their local hard drive and select a folder or file.

But browsing a remote FTP folder has never been as easy- until now!


Here is a stack you can include as a substack in your projects that  
make browsing and choosing remote folders and files as easy as local  
ones.


Instructions:

jjAnswerFTPfile:
----------------

Syntax:
jjAnswerFTPfile tURL, tUserName, tPassword, tMsg

Description:
tURL: the URL of the site (example: "craniumnet.com")
tUserName: the FTP username
tPassword: the FTP password
tMsg: the dialog message you want to appear (example: "Please choose  
a file")

You will find the remote file and path in the DialogData.



jjAnswerFTPfile:
----------------

Syntax:
jjAnswerFTPfolder tURL, tUserName, tPassword, tMsg, showFiles


Description:
tURL: the URL of the site (example: "craniumnet.com")
tUserName: the FTP username
tPassword: the FTP password
tMsg: the dialog message you want to appear (example: "Please choose  
a folder")
showFiles: set this to "showFiles" if you want files to appear in the  
browser. Leave it empty (or set it to anything else) if you want only  
folders showing up.

You will find the path to the remote folder in the DialogData.


---

This is far from polished, for example, the "make new folder" button  
doesn't work yet :-)

Also, you may want not just the path returned by the correct ftp  
string for accessing the data, which can be easily done with a slight  
mod. I will upload this one soon, let me know if you have questions.

---

For the demo, just fill in the fields and hit the buttons to see a  
demonstration.

Anyway, I hope this will prove valuable to those of you needing to  
browse and choose remote files and folders.

The stack is here:

leapingbrain.com/products/jjanswerFTPdemo.rev.zip



More information about the use-livecode mailing list