User Guide
File manipulation functions 265
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.
Returns
A Boolean value that indicates success (true) or failure (false).
Enabler
“dreamweaver.canSaveDocument()” on page 447.
dreamweaver.saveDocumentAs()
Availability
Dreamweaver 3.
Description
Opens the Save As dialog box.
Arguments
documentObject
• 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.
Returns
Nothing.
dreamweaver.saveDocumentAsTemplate()
Availability
Dreamweaver 3.
Description
Opens the Save As Template dialog box.
Arguments
documentObject, {fileName}
• The documentObject argument is the object at the root of a document’s DOM tree, which is
the value that dreamweaver.getDocumentDOM() returns.
• The fileName argument, which is optional, is the name of the file to open, expressed as an
absolute URL.
000_DW_API_Print.book Page 265 Wednesday, August 20, 2003 9:14 AM