User Guide

318 Document
dreamweaver.saveAll()
Availability
Dreamweaver 3.
Description
Saves all open documents, opening the Save As dialog box for any documents that have not
been saved previously.
Arguments
None.
Returns
Nothing.
Enabler
See dreamweaver.canSaveAll()” on page 570.
dreamweaver.saveDocument()
Availability
Dreamweaver 2.
Description
Saves the specified file on a local computer.
Arguments
documentObject, {fileURL}
The documentObject argument is the object at the root of a document’s DOM tree,
which is the value that the
dreamweaver.getDocumentDOM() function returns.
The fileURL argument, which is optional, is a URL that represents a location on a local
computer. If the URL is relative, it is relative to the extension file. In Dreamweaver 2, this
argument is required. If the
fileURL argument is omitted in Dreamweaver 4, the file is
saved to its current location if it has been previously saved; otherwise, a Save dialog box
appears.
NOTE
In Dreamweaver 2, if the file is read-only, Dreamweaver tries to check it out. If
the document is still read-only after this attempt, or if it cannot be created, an error
message appears.
000_DW_API_Print.book Page 318 Wednesday, July 20, 2005 11:58 AM