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

POSTAcceptorURL Property

Indicates the location of the script used for uploading images inserted from a local machine via the HTTP POST method to a remote server.  By setting this property, the HTTP protocol is used for image uploading instead of FTP.

Applies To

EditLive Object

Syntax

JavaScript object.setPOSTAcceptorURL( sPOSTAcceptorURL );
 
[ sPOSTAcceptorURL = ] object.getPOSTAcceptorURL();
 

Possible Values

sPOSTAcceptorURL Required.  String that specifies the URL containing the script for uploading images to a remote server via HTTP.

This property is read/write. 

Examples

JavaScript

The following example would set the location of the upload script to 'http://www.yourhost.com/upload_script.asp'.

function EditLive1_onload() {
    editLive1.setEditLiveMode( 'HTMLString' );
    editLive1.setPOSTAcceptorURL( 'http://www.yourhost.com/upload_script.asp' );
    editLive1.setImageMode( 'LocalOnly')
    editLive1.setWebRoot( 'http://www.yourhost.com/' );
}

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

function button1_onclick(){
    var sPOSTAcceptorURL = editLive1.getPOSTAcceptorURL();
    alert( sPOSTAcceptorURL );
}

Remarks

This property expects an absolute URL as input.

This property is only applicable when running EditLive! in HTMLString mode.

This property is only applicable when using the HTTP protocol instead of FTP for image uploading.

This property is only applicable if users can insert images from a local machine.

Minimum Version

EditLive! 1.3 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.