Adobe 38040334 - Dreamweaver CS3 User Manual page 22

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

Advertisement

MMHttp.clearTemp()
Description
This function deletes all the files in the Configuration/Temp folder, which is located in the Dreamweaver application
folder.
Arguments
None.
Returns
Nothing.
Example
The following code, when saved in a file within the Configuration/Shutdown folder, removes all the files from the
Configuration/Temp folder when the user quits Dreamweaver:
<html>
<head>
<title>Clean Up Temp Files on Shutdown</title>
</head>
<body onLoad="MMHttp.clearTemp()">
</body>
</html>
MMHttp.getFile()
Description
This function gets the file at the specified URL and saves it in the Configuration/Temp folder, which is located in the
Dreamweaver application folder. Dreamweaver automatically creates subfolders that mimic the folder structure of
the server; for example, if the specified file is at www.dreamcentral.com/people/index.html, Dreamweaver stores the
index.html file in the People folder inside the www.dreamcentral.com folder.
Arguments
URL, {prompt}, {saveURL}, {titleBarLabel}
• The
argument is an absolute URL on a web server; if http:// is omitted from the URL, Dreamweaver assumes
URL
HTTP protocol.
• The
argument, which is optional, is a Boolean value that specifies whether to prompt the user to save the
prompt
file. If
is outside the Configuration/Temp folder, a
saveURL
• The
argument, which is optional, is the location on the user's hard disk where the file should be saved,
saveURL
which is expressed as a file:// URL. If prompt is a
the user can override
saveURL
• The
argument, which is optional, is the label that should appear in the title bar of the Save dialog
titleBarLabel
box.
value or
true
in the Save dialog box.
value of
is ignored for security reasons.
prompt
false
is outside the Configuration/Temp folder,
saveURL
DREAMWEAVER CS3
17
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents