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
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...