User Guide
52 Chapter 4: The Design Notes API
The Design Notes JavaScript API
All functions in the Design Notes JavaScript API are methods of the MMNotes object.
MMNotes.close()
Description
This function closes the specified Design Notes file and saves any changes. If all the key/value
pairs are removed, Dreamweaver deletes the Design Notes file. If it is the last Design Notes file in
the _notes folder, Dreamweaver also deletes the folder.
Note: Always call the MMNotes.close() function when you finish with Design Notes so Dreamweaver
writes to the file.
Arguments
fileHandle
• The fileHandle argument is the file handle that the MMNotes.open() function returns.
Returns
Nothing.
Example
See “MMNotes.set()” on page 56.
MMNotes.filePathToLocalURL()
Description
This function converts the specified local drive path to a file:// URL.
Arguments
drivePath
• The drivePath argument is a string that contains the full drive path.
Returns
A string that contains the file:// URL for the specified file.
Example
A call to MMNotes.filePathToLocalURL('C:\sites\webdev\index.htm') returns "file:///
c|/sites/webdev/index.htm"
.
000_DW_API_Print.book Page 52 Wednesday, August 20, 2003 9:14 AM