Chapter 8: The Database Connectivity Api; How To Develop A New Connection Type - Adobe 38040334 - Dreamweaver CS3 User Manual

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Chapter 8: The database
connectivity API
As a developer, you can create new connection types and corresponding dialog boxes for new or
existing server models for Adobe® Dreamweaver® CS3. 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, "Create a JavaScript file that implements at least the following elements:" on
page 72, 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/Connec-
tions/server-model/platform folder (where the platform is either Windows or Macintosh).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents