beautypg.com

Dreamweaver.savedocumentas(), Dreamweaver.savedocumentastemplate() – Adobe Dreamweaver API Reference CS5 User Manual

Page 267

background image

262

DREAMWEAVER API REFERENCE

Document

Last updated 8/27/2013

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
See “

dreamweaver.canSaveDocument()

” on page 508.

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.