Chapter 7: The Database Connectivity Api; How To Develop A New Connection Type - MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference

Dreamweaver api reference
Table of Contents

Advertisement

CHAPTER 7
The Database Connectivity
API
As a developer, you can create new connection types and corresponding dialog boxes for new
or existing server models for Macromedia Dreamweaver 8. Then, when a user sets up a site to
start building pages, he or she creates a new connection object after selecting the particular
type of connection that you created.
The user can select your new connection type in the following ways:
On the Application panel, the user can click the Plus (+) button and select Recordset. In
the Recordset dialog box, the user can expand the Connection list box.
On the Database tab of the Databases panel, the user can click the Plus (+) button and
select Data Source Name.

How to develop a new connection type

The following steps outline the process for creating a new connection type:
1.
Create the layout for the connection dialog box.
Create an HTML file that lays out the user interface (UI) for your connection dialog box.
Name this file using the name of the connection (for example, myConnection.htm). For
information about creating a dialog box, see Getting Started with Dreamweaver.
Make sure this HTML file includes a reference to the JavaScript implementation file that
you define in Step 2,
elements:" on page
102, as shown in the following example:
<head>
<script SRC="../myConnectionImpl.js"></script>
</head>
Store this HTML file, which defines your connection dialog box, in the Configuration/
Connections/server-model/platform folder (where the platform is either Windows or
Macintosh).
"Create a JavaScript file that implements at least the following
7
101

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver 8

Table of Contents