Adobe 38040334 - Dreamweaver CS3 User Manual page 244

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

Advertisement

• The
bopenWithCurSiteAndShowDialog
to open a document with the current site and to cause the New Document dialog box to appear;
Returns
Nothing.
dreamweaver.newFromTemplate()
Availability
Dreamweaver 3.
Description
Creates a new document from the specified template. If no argument is supplied, the Select Template dialog box
appears.
Arguments
{templateURL}, bMaintain
• The
argument is the path to a template in the current site, which is expressed as a file:// URL.
templateURL
• The
argument is a Boolean value,
bMaintain
original template.
Returns
Nothing.
dreamweaver.openDocument()
Availability
Dreamweaver 2.
Description
Opens a document for editing in a new Dreamweaver window and gives it the focus. For a user, the effect is the same
as selecting File > Open and selecting a file. If the specified file is already open, the window that contains the
document comes to the front. The window that contains the specified file becomes the currently selected document.
In Dreamweaver 2, if Check In/Check Out is enabled, the file is checked out before it opens. In Dreamweaver 3 and
later, you must use
"dreamweaver.openDocumentFromSite()" on page 240
Note: This function will cause an error if called from Behavior action or object files.
Arguments
fileName
• The
argument is the name of the file to open, which is expressed as a URL. If the URL is relative, it is
fileName
relative to the file that contains the script that called this function.
Returns
The document object for the specified file, which is the same value that the
function returns.
argument, which is optional, has a value of
or
, that indicates whether to maintain the link to the
true
false
or
. Specify
true
false
false
to get this behavior.
dreamweaver.getDocumentDOM()
DREAMWEAVER CS3
239
API Reference
true
otherwise.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents