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
|