260
Chapter 14: Document
dreamweaver.getNewDocumentDOM()
Availability
Dreamweaver MX.
Description
Provides access to the editable tree for a new, empty document. This function works in the same
way as the
getDocumetDOM()
function, except that it points to a new document, not an existing
one, and does not open the document.
Arguments
None.
Returns
A pointer to new, empty document.
Example
The following code returns the DOM for a new, empty document:
var theDOM = dreamweaver.getNewDocumentDOM();
dreamweaver.getRecentFileList()
Availability
Dreamweaver 3.
Description
Gets a list of all the files in the recent files list at the bottom of the File menu.
Arguments
None.
Returns
An array of strings that represent the paths of the most recently accessed files. Each path is
expressed as a file:// URL. If there are no recent files, the function returns nothing.
dreamweaver.importXMLIntoTemplate()
Availability
Dreamweaver 3.
Description
Imports an XML text file into the current template document. This function operates on the
document that has focus, which must be a template. If you do not specify a filename argument,
Dreamweaver opens a dialog box to request the import file string.
000_DW_API_Print.book Page 260 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...