Adobe 38040334 - Dreamweaver CS3 User Manual page 56

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

Advertisement

• The
argument is a connection name that is specified in the Connection Manager. It identifies the
connName
connection string that Dreamweaver should use to make a database connection to a live data source.
Returns
A connection string that corresponds to the named connection.
Example
The code
var connectionString = MMDB.getConnectionString ("EmpDB")
ADO or JDBC connection.
• For an ADO connection, the following string can return:
"dsn=EmpDB;uid=;pwd=";
• For a JDBC connection, the following string can return:
"jdbc:inetdae:192.168.64.49:1433?database=pubs&user=JoeUser&¬
password=joesSecret"
MMDB.getDriverName()
Availability
Dreamweaver UltraDev 1.
Description
This function gets the driver name that is associated with the specified connection. Only a JDBC connection has a
driver name.
Arguments
connName
• The
argument is a connection name that is specified in the Connection Manager. It identifies the
connName
connection string that Dreamweaver should use to make a database connection to a live data source.
Returns
A string that contains the driver name.
Example
The statement
MMDB.getDriverName ("EmpDB");
"jdbc/oracle/driver/JdbcOracle"
MMDB.getDriverUrlTemplateList() (deprecated)
Availability
Dreamweaver UltraDev 4, deprecated in Dreamweaver MX.
Note: For Dreamweaver UltraDev 4, the list of JDBC drivers are stored in the connections.xml file, which is located in
the Configuration/Connections folder. Each driver has an associated URL template. This function returns the list of
JDBC drivers.
For Dreamweaver MX (or later), these drivers and URL templates are hard-coded in the JDBC dialog boxes. In
addition, this function is an empty function definition to eliminate undefined-function errors. The following
example shows how a JDBC driver and URL template are hard-coded:
might return the following string:
DREAMWEAVER CS3
returns different strings for an
51
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents