Adobe 38040334 API Reference - Page 21
The Http Api
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 21 highlights
DREAMWEAVER CS3 16 API Reference 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 object. 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/servermodel/_mmDBScripts folder. Arguments serverScriptsfolder • The serverScriptsfolder argument is a string that names a particular folder, relative to 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 data property of this object is a string that contains the contents of the deleted scripts. If an error occurs, Dreamweaver reports it in the statusCode property of the returned object. 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: Clear Server Scripts
![](/manual_guide/products/adobe-38040334-api-reference-b593776/21.png)