The Connection Api - MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference

Dreamweaver api reference
Table of Contents

Advertisement

Unless you need to define connection parameters other than the ones provided in the
standard connection_includefile.edml file, these two steps are the minimum to create a new
connection dialog box.
The title of the dialog box that the user sees is in the title tag, which is specified in the
HTML document.
The functions listed in the next section let you create a connection dialog box. Along with
implementing the calls for generating include files for the user, you can register your
connectivity type within the server model section of the connection XML file.
For information about the Database Connectivity API that is associated with creating a new
connection, see
"Database connection functions" on page

The Connection API

To create a new type of connection, including the dialog box with which users interact, you
must implement the following three functions:
and
applyConnection()
implementation file that is associated with your new connection type (see Step 2
JavaScript file that implements at least the following elements:" on page
The
applyConnection()
see examples of the HTML source in
function takes the HTML source and extracts its properties. You can
findConnection()
implement
findConnection()
information that returns from
implementation, see the following two JavaScript files:
connection_ado_conn_string.js
folder.
connection_common.js
When the user opens a site, Dreamweaver goes through each file in the Connections folder,
opens it, and passes the contents to
criteria for a valid connection,
then lists all the connection objects in the Database Explorer panel.
When the user opens a connection dialog box and selects to create a new connection or
duplicate or edit an existing connection, Dreamweaver calls the
function and passes back the same connection object that
process lets Dreamweaver populate the dialog box with the connection information.
. You write these three functions and include them in the JavaScript
function returns an HTML source within an include file. You can
"The generated include file" on page
to use the search patterns in XML files to extract the
applyConnection()
is located in Configuration/Connections/ASP_Js
is located in Configuration/Connections/Shared folder.
findConnection()
findConnection()
70.
,
findConnection()
. For an example of such an
. If the contents of a file match the
returns a connection object. Dreamweaver
inspectConnection()
findConnection()
inspectConnection()
"Create a
102).
107. The
created. This
The Connection API
,
103

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents