Adobe 38040334 - Dreamweaver CS3 User Manual page 81

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

Advertisement

ASP JavaScript
The ASP and JavaScript include file should be named MyConnection1.asp, where MyConnection1 is the name of the
connection. The following sample is an include file for an ADO connection string:
<%
// Filename="Connection
// Type="ADO"
// HTTP="true"
// Catalog=""
// Schema=""
_
var MM
MyConnection1
%>
The server behavior file includes this connection by using the relative file include statement, as shown in the
following example:
<!--#include file="../Connections/MyConnection1.asp"-->
ColdFusion
When you use UltraDev 4 ColdFusion, Dreamweaver relies on a ColdFusion include file to get a list of data sources.
Note: For regular Dreamweaver ColdFusion, Dreamweaver ignores any include files and, instead, makes use of RDS to
retrieve the list of data sources from ColdFusion.
The UltraDev 4 ColdFusion include file should be named MyConnection1.cfm, where MyConnection1 is the name
of your connection. The following example shows the include file for a ColdFusion connection to a product table:
<!-- FileName="Connection_cf_dsn.htm" "dsn=products" -->
<!-- Type="ADO" -->
<!-- Catalog="" -->
<!-- Schema="" -->
<!-- HTTP="false" -->
<CFSET MM_MyConnection1_DSN
<CFSET MM_MyConnection1_USERNAME
<CFSET MM_Product_USERNAME
<CFSET MM_MyConnection1_PASSWORD
The server behavior file includes this connection by using the
example:
<cfinclude template="Connections/MyConnection1.cfm">
JSP
The JSP include file should be named MyConnection1.jsp, where MyConnection1 is the name of your connection.
The following example is the include file for a JDBC connection to a database:
_
_
_
ado
conn
string.htm"
_
STRING = "dsn=pubs";
= "products">
= "">
= "">
= "">
statement, as shown in the following
cfinclude
DREAMWEAVER CS3
76
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents