Adobe Dreamweaver API Reference CS5 Manual de usuario Pagina 60

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 533
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 59
55
DREAMWEAVER API REFERENCE
The database API
Last updated 8/27/2013
Database connection functions
Database connection functions let you make and manage any connection, including the Dreamweaver-provided ADO,
ColdFusion, and JDBC connections.
These functions interface with the Connection Manager only; they do not access a database. For functions that access
a database, see
Database access functions” on page 67.
In managing database connections, you can get the user name and password to perform activities including:
Making a connection to a database
Opening a database connection dialog box
MMDB.deleteConnection()
Availability
Dreamweaver MX.
Description
This function deletes the named database connection.
Arguments
connName
The connName argument is the name of the database connection as it is specified in the Connection Manager. This
argument identifies, by name, the database connection to delete.
Returns
Nothing.
Example
The following example deletes a database connection:
function clickedDelete()
{
var selectedObj = dw.serverComponents.getSelectedNode();
if (selectedObj && selectedObj.objectType=="Connection")
{
var connRec = MMDB.getConnection(selectedObj.name);
if (connRec)
{
MMDB.deleteConnection(selectedObj.name);
dw.serverComponents.refresh();
}
}
}
Vista de pagina 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 532 533

Comentarios a estos manuales

Sin comentarios