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
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
fileName
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()
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.
This function cannot be called from Behavior action or object files because it causes an
error.
dreamweaver.openDocumentFromSite()
function returns.
to get this behavior.
File manipulation functions
315
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?