Adobe 38040334 - Dreamweaver CS3 User Manual page 238

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

Advertisement

• The
argument is the label that should appear in the title bar of the dialog box. If it is omitted, the
titleBarLabel
argument defaults to Choose Folder.
titleBarLabel
• The
directoryToStartIn
Returns
A string that contains the name of the folder, which is expressed as a file:// URL.
Example
The following code returns the URL of a folder:
return dreamweaver.browseForFolderURL('Select a Folder', ¬
dreamweaver.getSiteRoot());
dreamweaver.closeDocument()
Availability
Dreamweaver 2.
Description
Closes the specified document.
Arguments
documentObject
• The
argument is the object at the root of a document's DOM tree (the value that the
documentObject
weaver.getDocumentDOM()
the Document window might not close until the script that calls this function finishes executing.
Returns
Nothing.
dreamweaver.createDocument()
Availability
Dreamweaver 2, enhanced in Dreamweaver 4.
Description
Depending on the argument that you pass to this function, it opens a new document either in the same window or
in a new window. The new document becomes the active document.
Note: This function can be called only from the menus.xml file, a command, or the Property inspector file. If a behavior
action or object tries to call this function, Dreamweaver displays an error message.
Arguments
{bOpenInSameWindow}, {type}
• The
bOpenInSameWindow
current window. If the
bOpenInSameWindow
called on the Macintosh, the new document opens in a separate window.
argument is the path where the folder should open, which is expressed as a file:// URL.
function returns). If the
argument is a Boolean value that indicates whether to open the new document in the
argument is a value of
argument refers to the active document,
documentObject
, if it is omitted, or if the function is
false
DREAMWEAVER CS3
233
API Reference
dream-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents