The Http Api - MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference

Dreamweaver api reference
Table of Contents

Advertisement

Functions that return an object also have a callback version. Callback functions let other
functions execute while the web server processes an HTTP request. This capability is useful if
you are making multiple HTTP requests from Dreamweaver. The callback version of a
function passes its ID and return value directly to the function that is specified as its first
argument.

The HTTP API

This section details the functions that are methods of the
MMHttp.clearServerScriptsFolder()
Availability
Dreamweaver MX.
Description
Deletes the _mmServerScripts folder—and all its files—under the root folder for the current
site, which can be local or remote. The _mmServerScripts folder is located in Configuration/
Connections/Scripts/
Arguments
serverScriptsfolder
The
serverScriptsfolder
the Configuration folder on the application server, from which you want to retrieve and
clear server scripts.
Returns
An object that represents the reply from the server. The
that contains the contents of the deleted scripts. If an error occurs, Dreamweaver reports it in
the
property of the returned object.
statusCode
Example
The following code, in a menu command file inside the Configuration/Menus folder, removes
all the files from the _mmServerScripts folder when it is called from a menu:
<!-- MENU-LOCATION=NONE -->
<html>
<head>
<TITLE>Clear Server Scripts</TITLE>
<SCRIPT SRC="ClearServerScripts.js"></SCRIPT>
<SCRIPT LANGUAGE="javascript">
30
The HTTP API
/_mmDBScripts folder.
server-model
argument is a string that names a particular folder, relative to
object.
MMHttp
property of this object is a string
data

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents