Adobe Dreamweaver API Reference CS5 Manuale Utente Pagina 89

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 533
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 88
84
DREAMWEAVER API REFERENCE
The database connectivity API
Last updated 8/27/2013
<!--#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 = "products">
<CFSET MM_MyConnection1_USERNAME = "">
<CFSET MM_Product_USERNAME = "">
<CFSET MM_MyConnection1_PASSWORD = "">
The server behavior file includes this connection by using the cfinclude statement, as shown in the following
example:
<cfinclude template="Connections/MyConnection1.cfm">
The definition file for your connection type
For each server model, there is a connection_includefile.edml file that defines the connection type and maps the
properties that are defined in the include file to elements in the Dreamweaver interface.
Dreamweaver provides default definition files, one for each of the predefined server models, as listed in the following
table.
Dreamweaver uses the quickSearch and searchPattern parameters to recognize connection blocks and the
insertText parameter to create connection blocks. For more information on EDML tags and attributes, and regular
expression search patterns, see “Server Behaviors” in Extending Dreamweaver.
Server model Subfolder within the Configuration/Connections folder
ASP JavaScript ASP_Js
ASP.NET CSharp ASP.NET_Csharp
ASP.NET VBScrip ASP.NET_VB
ASP VBScript ASP_Vbs
ColdFusion ColdFusion
JavaServer Page JSP
PHP MySql PHP_MySql
Vedere la pagina 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 532 533

Commenti su questo manuale

Nessun commento