Specifications
Chapter 24288
The Design Notes JavaScript API
All functions in the Design Notes JavaScript API are methods of the MMNotes object. Optional
arguments are enclosed in braces ({ }).
MMNotes.close()
Description
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 MMNotes.close() when you finish with Design Notes to cause Dreamweaver to write to the file.
Arguments
fileHandle
The argument is the file handle that MMNotes.open() returns.
Returns
Nothing.
Example
See “MMNotes.set()” on page 292.
MMNotes.filePathToLocalURL()
Description
Converts the specified local drive path to a file:// URL.
Arguments
drivePath
The 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"
.
MMNotes.get()
Description
Gets the value of the specified key in the specified Design Notes file.
Arguments
fileHandle, keyName
• The first argument is the file handle that MMNotes.open() returns.
• The second argument is a string that contains the name of the key.