Specifications
Chapter 23282
MMHttp.clearTemp()
Description
Deletes all the files in the Configuration/Temp folder, which is located inside the Dreamweaver
application folder.
Arguments
None.
Returns
Nothing.
Example
The following code, when saved in a file inside 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
Gets the file at the specified URL and saves it in the Configuration/Temp folder, which is
located inside the Dreamweaver application folder. Dreamweaver automatically creates
subfolders that mimic the folder structure of the server; for example, if the specified file is at
http://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}
• URL is an absolute URL on a web server; if http:// is omitted from the URL, Dreamweaver MX
assumes HTTP protocol.
• prompt is a Boolean value that specifies whether to prompt the user to save the file. If
saveURL is outside the Configuration/Temp folder, a prompt value of false is ignored
for security reasons.
• saveURL is the location on the user’s hard disk where the file should be saved, which is
expressed as a file:// URL. If prompt is
true or saveURL is outside the Configuration/Temp
folder, the user can override
saveURL in the Save dialog box.
• titleBarLabel is the label that should appear in the title bar of the Save dialog box.