MMDB.deleteConnection()

Availability

Dreamweaver MX.

Description

This function deletes the named database connection.

Arguments

connName

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();
      }
   }
}

 

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