Displaying Help - Adobe 38040334 - Dreamweaver CS3 User Manual

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• Executes the procedures
Note: If any JavaScript code in your extension file contains the string "
string as an ending
script
into pieces and concatenate them like this:
Dreamweaver executes code in the
command or action from a menu for the Command and Behavior action extension types.
Dreamweaver executes code in the
for object extensions.
Dreamweaver ignores the
• Data translator
• Property inspector
• Floating panel
For all extensions, Dreamweaver executes code in other event handlers (for example,
) when the user interacts with the form fields to which they are attached.
required field.')"
Dreamweaver supports the use of event handlers within links. Event handlers in links must use syntax, as shown in
the following example:
<a href="#" onMouseDown=alert('hi')>link text</a>
Plug-ins (set to
at all times) are supported in the
play
applets, and Microsoft ActiveX controls are not supported in extensions.

Displaying Help

The
function, which is part of several extension APIs, causes Dreamweaver to do the following two
displayHelp()
things when you include it in your extension:
• Add a Help button to the interface.
• Call
when the user clicks the Help button.
displayHelp()
You must write the body of the
function determines how your extension displays Help. You can call the
function to open a file in a browser or devise a custom way to display Help such as displaying messages in another
absolutely positioned element in alert boxes.
The following example uses the
:
ument()
// The following instance of displayHelp() opens a browser to display a file
// that explains how to use the extension.
function displayHelp() {
var myHelpFile = dw.getConfigurationPath() + "ExtensionsHelp/myExtHelp.htm";
dw.browseDocument(myHelpFile);
}
tag and reports an unterminated string literal error. To avoid this problem, break the string
"<' + '/SCRIPT>".
event handler (if one appears in the
onLoad
event handler in the
onLoad
handler on the
onLoad
body
function to display Help. How you code the
displayHelp()
function to display Help by calling
displayHelp()
, the JavaScript interpreter reads the
</SCRIPT>"
body
tag if the body of the document contains a form
body
tag in the following extensions:
of extensions. The
BODY
document.write()
dreamweaver.browseDocument()
DREAMWEAVER CS3
Extending Dreamweaver
tag) when the user selects the
onBlur="alert('This is a
statement, Java
displayHelp()
dreamweaver.browseDoc-
75

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents