Adobe 38040334 - Dreamweaver CS3 User Manual page 319

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

This function returns an array of the strings for Dreamweaver to display in either the Setup Steps dialog box or the
Components panel, depending on the extension type.
Arguments
None.
Returns
An array of n+1 strings, where n is the number of steps, as described in the following list:
• The title that appears above the list of setup steps
• For each step, the text instructions, which can include any HTML markup that is legal inside a
You can include links (
tags) in the list of steps by using the following form:
a
<a href="#" onMouseDown="handler">Blue Underlined Text</a>
The
value can be replaced by any of the following strings or any JavaScript expression, such as
"handler"
"
dw.browseDocument('http://www.adobe.com')
• An
"Event:SetCurSite"
• An
"Event:CreateSite"
• An
"Event:SetDocType"
• An
"Event:CreateConnection"
• An
"Event:SetRDSPassword"
name and password (ColdFusion only).
• An
"Event:CreateCFDataSource"
Example
The following example sets four steps for 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();
}
}
}
":
handler opens a dialog box to set the current site.
handler opens a dialog box to create a new site.
handler opens a dialog box to change the document type of the user's document.
handler opens a dialog box to create a new database connection.
handler opens a dialog box to set the Remote Development Service (RDS) user
handler opens the ColdFusion administrator in a browser.
DREAMWEAVER CS3
313
Extending Dreamweaver
tag
li

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents