Ephox Home Page Ephox Home Page  
Search
Buy/Upgrade
 
 Developers
Developers Home
EditLive! for Java
EditLive! for Windows
System Requirements
Getting Started
Integration Samples
Articles
API Reference
EditLive! for XML
Discussion Forums

FTPInitialDirectory Property

Indicates the directory accessed on the FTP server once an FTP connection has been established.

Applies To

EditLive Object

Syntax

JavaScript object.setFTPInitialDirectory( sFTPInitialDirectory );
 
[ sFTPInitialDirectory = ] object.getFTPInitialDirectory();
 

Possible Values

sFTPInitialDirectory Required.  String that specifies the initial directory on the FTP server. 

This property is read/write.  The default value is null.

Examples

JavaScript

The following example would set the initial directory on the FTP server to '/directory/subdirectory'. 

function EditLive1_onload() {
    editLive1.setEditLiveMode( 'FTPStandard' );
    editLive1.setFTPServer( 'ftp.yourserver.com' );
    editLive1.setFTPUsername( 'yourname' );
    editLive1.setFTPPassword( 'yourpassword' );
    editLive1.setFTPInitialDirectory( '/directory/subdirectory' )
    editLive1.setWebRoot( 'http://www.yourhost.com/directory/subdirectory/' );
    editLive1.loadFile( 'yourfile.htm' );
}

The following example would show a message box with the current value of FTPInitialDirectory.

function button1_onclick(){
    var sFTPInitialDirectory = editLive1.getFTPInitialDirectory();
    alert( sFTPInitialDirectory );
}

Remarks

When an initial FTP directory is set, users may only access files below this directory.  No files of directories above this are accessible.

When this property is set, the directory/s must also be included in the WebRoot that is defined.

Minimum Version

EditLive! 1.0 or greater.

See Also

 

 

Copyright © 1999-2005 Ephox Corporation. All Rights Reserved. 'Ephox' is a registered trademark of Ephox Corporation.
Java and the Java Powered logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.