![MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Скачать руководство пользователя страница 52](http://html1.mh-extra.com/html/macromedia/dreamweaver-mx-2004-dreamweaver-api/dreamweaver-mx-2004-dreamweaver-api_reference_3336554052.webp)
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
Содержание DREAMWEAVER MX 2004-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...