Adobe Extending Dreamweaver CS4 Uživatelský manuál Strana 322

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 387
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 321
316
EXTENDING DREAMWEAVER CS4
Components
An "Event:CreateSite" handler opens a dialog box to create a new site.
An "Event:SetDocType" handler opens a dialog box to change the document type of the user’s document.
An "Event:CreateConnection" handler opens a dialog box to create a new database connection.
An "Event:SetRDSPassword" handler opens a dialog box to set the Remote Development Service (RDS) user
name and password (Adobe ColdFusion only).
An "Event:CreateCFDataSource" handler opens the Adobe ColdFusion administrator in a browser.
Example
The following example sets four steps for Adobe ColdFusion components, and provides a hypertext link in the fourth
step so the user can enter the RDS user name and password:
function getSetupSteps()
{
var doSDK = false;
dom = dw.getDocumentDOM();
if (dom && dom.serverModel)
{
var aServerModelName = dom.serverModel.getDisplayName();
}
else
{
var aServerModelName = site.getServerDisplayNameForSite();
}
if (aServerModelName.length)
{
if(aServerModelName != "ColdFusion")
{
if(needsSDKInstalled != null)
{
doSDK = needsSDKInstalled();
}
}
}
var someSteps = new Array();
someSteps.push(MM.MSG_WebService_InstructionsTitle);
someSteps.push(MM.MSG_Dynamic_InstructionsStep1);
someSteps.push(MM.MSG_Dynamic_InstructionsStep2);
if(doSDK == true)
{
someSteps.push(MM.MSG_WebService_InstructionsStep3);
}
someSteps.push(MM.MSG_WebService_InstructionsStep4);
return someSteps;
}
setupStepsCompleted()
Availability
Dreamweaver MX.
Zobrazit stránku 321
1 2 ... 317 318 319 320 321 322 323 324 325 326 327 ... 386 387

Komentáře k této Příručce

Žádné komentáře