MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual page 315

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

Adding a service component
To add a new lightweight directory access protocol (LDAP) service using Dreamweaver MX:
Using existing component type files as a model (such as the files in the application folder
1
Configuration/Components/Common/WebServices) create all the required files, plus the
desired optional files, to display the new component type in the Dreamweaver Components
panel, as shown in the following table:
Filename
.htm
.js
.gif
*Menus.xml
*.gif
Note: Keep the same prefix throughout all the files that correspond to one component so that
each file and its corresponding component can be identified easily.
Write the JavaScript code to implement the new server component.
2
The extension file (HTM) defines the locations of the JavaScript code in the
JavaScript files can reside in the Shared folder, in the same folder as the extension file, or in the
Common folder for code that applies to multiple server models.
For example, the Configuration/Components/Common/WebServices/WebServices.htm file
contains the line:
<SCRIPT SRC="../../Common/WebServices/WebServicesCommon.js"></SCRIPT>.
For more information on the available Component API functions, see
functions" on page
Tip: When adding a new service, you might want to use the Component panel to browse meta
information so that the information is readily available as you create the extension. Dreamweaver can
browse added components and display nodes in the component tree. The Components panel
provides drag-and-drop support and keyboard support in Code view.
Description
The extension file that identifies other supporting
JavaScript and GIF files.
The extension file that implements the Component API
callback.
The image that appears in the Components pop-up list.
The repository for metadata that organizes the
Components panel structure. Although the common
WebServices component does not use this file, you can
refer to the file WebServicesMenus.xml in the application
folder Components/ColdFusion/ WebServices as an
example.
Toolbar images, which can be enabled or disabled, as
shown in the following example:
ToolBarImageUp.gif
ToolBarImageDown.gif
ToolBarImageDisabled.gif.
Or, tree node images.
316.
Required/Optional
Required
Required
Required
Optional
Optional
tag. These
SCRIPT
"Component panel API
Component panel files
315

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents