![MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Скачать руководство пользователя страница 307](http://html1.mh-extra.com/html/macromedia/dreamweaver-8-dreamweaver-api/dreamweaver-8-dreamweaver-api_reference_3332054307.webp)
File manipulation functions
307
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.
Arguments
{bOpenInSameWindow}, {type}
■
The
bOpenInSameWindow
argument is a Boolean value that indicates whether to open the
new document in the current window. If the
bOpenInSameWindow
argument is a value of
false
, if it is omitted, or if the function is called on the Macintosh, the new document
opens in a separate window.
■
The
type
argument specifies the type of document to create, as declared in the
Dreamweaver Configuration/DocumentTypes/MMDocumentTypes.xml file as the
id
attribute of the
documenttype
tag. For example, the
type
argument could be
"HTML",
"ASP-JS", "ASP-VB", "ColdFusion", "CFC", "JSP", "ASP.NET_VB"
, and so on. For
a complete list of possible types, see the MMDocumentTypes.xml file. If you do not
specify
type
, the value defaults to
"HTML"
.
Returns
The document object for the newly created document. This is the same value that the
dreamweaver.getDocumentDOM()
function returns.
NO
TE
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.
NO
T
E
You can extend the MMDocumentTypes file by adding your own document types. For
information on extending document types, see
Extending Dreamweaver
.
000_DW_API_Print.book Page 307 Wednesday, July 20, 2005 11:58 AM
Содержание DREAMWEAVER 8-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 16: ......
Страница 28: ...28 The File I O API...
Страница 38: ...38 The HTTP API...
Страница 68: ...68 Flash Integration...
Страница 100: ...100 The Database API...
Страница 116: ...116 The JavaBeans API...
Страница 144: ...144 The Source Control Integration API...
Страница 146: ......
Страница 254: ...254 Workspace...
Страница 298: ...298 Site...
Страница 354: ...354 Document...
Страница 396: ...396 Page Content...
Страница 488: ...488 Design...
Страница 550: ...550 Code...