146
Chapter 11: Application
Each
book-id
entry has the following attributes:
■
The
id
attribute is the book ID that is used in the help.map and HelpDoc.js files.
■
The
win-mapping
attribute is the Windows book name, which is
"UsingDreamweaver.chm"
in this example.
■
The
mac-mapping
attribute is the Macintosh book name, which is
"Dreamweaver Help"
in
this example.
•
The help.map file
The help.map file maps a help content ID to a specific help book. Dreamweaver uses the
help.map file to locate specific help content when it calls help internally.
•
The helpDoc.js file
The helpDoc.js file lets you map variable names that you can use in place of the actual book ID
and page string. The helpDoc.js file maps a help content ID
to an HTML page in a specific
help book. Dreamweaver uses the helpDoc.js file when it calls help from JavaScript.
Arguments
bookID
•
The
bookID
argument, which is required, has the following format:
ID:page
The
ID
portion is the
bookID
of the entry in the help.xml file that names the file that contains
the help content to display. The
page
portion of the entry identifies the specific page to
display
.
The pages are referenced in the help.map file.
Returns
A value of
true
if successful;
false
if Dreamweaver cannot open the specified file in the
help viewer.
Example
openHelpURL("DW_Using:index.htm");
dreamweaver.openWithApp()
Availability
Dreamweaver 3.
Description
Opens the specified file with the specified application.
Arguments
fileURL
,
appURL
•
The
fileURL
argument is the path to the file to open, which is expressed as a file:// URL.
•
The
appURL
argument is the path to the application that is to open the file, which is expressed
as a file:// URL.
Returns
Nothing.
000_DW_API_Print.book Page 146 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...