Adobe 38040334 - Dreamweaver CS3 User Manual page 239

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

Advertisement

• The
argument specifies the type of document to create, as declared in the Dreamweaver Configu-
type
ration/DocumentTypes/MMDocumentTypes.xml file as the
the
argument could be
type
, and so on. For a complete list of possible types, see the MMDocumentTypes.xml file. If you do
"ASP.NET_VB"
not specify
, the value defaults to
type
Note: You can extend the MMDocumentTypes file by adding your own document types. For information on extending
document types, see Extending Dreamweaver.
Returns
The document object for the newly created document. This is the same value that the
function returns.
mentDOM()
dreamweaver.createXHTMLDocument()
Availability
Dreamweaver MX.
Description
Depending on the argument that you pass to this function, it opens a new XHTML document either in the same
window or in a new window. The new document becomes the active document. It is similar to the
weaver.createDocument()
When Dreamweaver creates a new XHTML document, it reads a file named default.xhtml, which is located in the
Configuration/Templates folder, and, using the content of that file, creates an output file that contains the following
skeleton declarations:
<?xml version="1.0">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=" />
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
The default document type definition (DTD) declaration is
user adds a frameset to the document, Dreamweaver switches the DTD to
, and
text/html
charset
new document. The
directive is not required if the document uses UTF-8 or UTF-16 character encoding; if it
?xml
is present, it might be rendered by some older browsers. However, because this directive should be in an XHTML
document, by default, Dreamweaver uses it (for both new and converted documents). Users can manually delete the
directive. The
directive includes the encoding attribute, which matches the
?xml
attribute.
Arguments
{bOpenInSameWindow}
"HTML", "ASP-JS", "ASP-VB", "ColdFusion", "CFC", "JSP",
.
"HTML"
function.
is intentionally left out of the default.xhtml file but is filled in before the user views the
attribute of the
id
documenttype
dreamweaver.getDocu-
XHTML 1.0 Transitional
XHTML 1.0 Frameset
charset
DREAMWEAVER CS3
API Reference
tag. For example,
dream-
, rather than
. If the
Strict
.
is
Content-Type
in the
Content-Type
234

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents