48
Chapter 3: The HTTP API
•
The
serverScriptsFolder
argument is an optional string that names a particular folder—
relative to the Configuration 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). Dreamweaver copies these files to
the _mmServerScripts subfolder under the root folder for the current site.
If an error occurs, Dreamweaver reports it in the
statusCode
property of the returned object.
MMHttp.getTextCallback()
Availability
Dreamweaver UltraDev 4, enhanced in Dreamweaver MX.
Description
Retrieves the contents of the document at the specified URL and passes it to the
specified function.
Arguments
callbackFunc
,
URL
,
{serverScriptsFolder}
•
The
callbackFunc
argument is the JavaScript function to call when the HTTP request is
complete.
•
The
URL
argument is an absolute URL on a web server; if http:// is omitted from the URL,
Dreamweaver assumes HTTP protocol.
•
The
serverScriptsFolder
argument is an optional string that names a particular folder—
relative to the Configuration 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). Dreamweaver retrieves these files
and passes them to the function that
callbackFunc
identifies.
If an error occurs, Dreamweaver MX reports it in the
statusCode
property of the
returned object.
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
URL
argument is an absolute URL on a web server; if http:// is omitted from the URL,
Dreamweaver assumes HTTP protocol.
000_DW_API_Print.book Page 48 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...