Specifications
454
dreamweaver.newDocumentDOM()
Availability
Dreamweaver MX
Description
Provides access to the editable tree for a new, empty document. This works in the same way as
getDocumetDOM(), except that it points to a new rather than an existing document and does not
open the document.
Arguments
None.
Returns
Pointer to new, empty document.
Example
The following code generates a new, empty document:
var theDOM = dreamweaver.newDocumentDOM("document");
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 a file of XML text 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.
Arguments
{filePath}
filePath
Optional. A string that specifies the filename to which Dreamweaver exports the
template. Express
filepath as a URL file string, such as "file:///c|/temp/mydata.txt".
Returns
Nothing.