Adobe 38040334 - Dreamweaver CS3 User Manual page 25

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Arguments
callbackFunc, URL, {serverScriptsFolder}
• The
argument is the JavaScript function to call when the HTTP request is complete.
callbackFunc
• The
argument is an absolute URL on a web server; if http:// is omitted from the URL, Dreamweaver assumes
URL
HTTP protocol.
• The
serverScriptsFolder
uration folder on the application server—from which you want to retrieve server scripts. To retrieve the scripts,
Dreamweaver uses the appropriate transfer protocol (such as FTP, WebDAV, or Remote File System). Dream-
weaver retrieves these files and passes them to the function that
If an error occurs, Dreamweaver MX reports it in the
MMHttp.postText()
Availability
Dreamweaver UltraDev 4, enhanced in Dreamweaver MX.
Description
Performs an HTTP post of the specified data to the specified URL. Typically, the data associated with a post
operation is form-encoded text, but it could be any type of data that the server expects to receive.
Arguments
URL, dataToPost, {contentType}, {serverScriptsFolder}
• The
argument is an absolute URL on a web server; if http:// is omitted from the URL, Dreamweaver assumes
URL
HTTP protocol.
• The
argument is the data to post. If the third argument is
dataToPost
or omitted,
coded"
dataToPost
(available at www.faqs.org/rfcs/rfc1866.html).
• The
argument, which is optional, is the content type of the data to post. If omitted, this argument
contentType
defaults to
"application/x-www-form-urlencoded"
• The
serverScriptsFolder
uration folder on the application server—to which you want to post the data. To post the data, Dreamweaver uses
the appropriate transfer protocol (such as FTP, WebDAV, or Remote File System).
If an error occurs, Dreamweaver reports it in the
Example
In the following example of an
myScripts.cfm file in a folder named DeployScripts, which is located in the Configuration folder on the local
computer:
MMHttp.postText(
"http://ultraqa8/DeployScripts/myScripts.cfm",
"arg1=Foo",
"application/x-www-form-urlencoded",
"Configuration/DeployScripts/"
)
When Dreamweaver executes this function call, the following sequence occurs:
argument is an optional string that names a particular folder—relative to the Config-
statusCode
must be form-encoded according to section 8.2.1 of the RFC 1866 specification
argument is an optional string that names a particular folder—relative to the Config-
statusCode
function call, assume that a developer has placed the
MMHttp.postText()
identifies.
callbackFunc
property of the returned object.
"application/x-www-form-urlen-
.
property of the returned object.
DREAMWEAVER CS3
20
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents