Adobe 38040334 - Dreamweaver CS3 User Manual page 247

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

Advertisement

Enabler
See "dreamweaver.canSaveAll()" on page 450.
dreamweaver.saveDocument()
Availability
Dreamweaver 2.
Description
Saves the specified file on a local computer.
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.
Arguments
documentObject, {fileURL}
• The
argument is the object at the root of a document's DOM tree, which is the value that the
documentObject
dreamweaver.getDocumentDOM()
• The
argument, which is optional, is a URL that represents a location on a local computer. If the URL is
fileURL
relative, it is relative to the extension file. In Dreamweaver 2, this argument is required. If the
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 (
Enabler
See "dreamweaver.canSaveDocument()" on page 450.
dreamweaver.saveDocumentAs()
Availability
Dreamweaver 3.
Description
Opens the Save As dialog box.
Arguments
documentObject
• The
argument is the object at the root of a document's DOM tree, which is the value that the
documentObject
dreamweaver.getDocumentDOM()
Returns
Nothing.
function returns.
) or failure (
).
true
false
function returns.
DREAMWEAVER CS3
API Reference
argument
fileURL
242

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents