File manipulation functions
315
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()
to get this behavior.
Arguments
fileName
■
The
fileName
argument is the name of the file to open, which is expressed as a URL. If
the URL is relative, it is 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
dreamweaver.getDocumentDOM()
function returns.
dreamweaver.openDocumentFromSite()
Availability
Dreamweaver 3.
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 double-clicking a file in the Site panel. 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.
NO
TE
This function will cause an error if called from Behavior action or object files.
NO
TE
This function cannot be called from Behavior action or object files because it causes an
error.
000_DW_API_Print.book Page 315 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...