Dreamweaver MX.
This function deletes the named database connection.
connName
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.
Nothing.
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();
}
}
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/07_mmdb4.htm