342
Server Behaviors
Multiple versions of a server behavior can differ, depending on which data source you use. For
example, the Repeat Region server behavior is designed for the standard Recordset.htm data
source. If Dreamweaver is extended to support a new type of data source (such as a COM
object), you can set
dataSource="COM.htm"
in a group file with a different implementation
of Repeat Region. The Repeat Region server behavior then applies the new implementation of
Repeat Region if you select the new data source.
Parent
group
Type
Attribute.
Required
No.
Value
The exact name of a data source file within a Configuration/DataSources folder, as shown in
the following example:
<group serverBehavior="Repeat Region.htm" ¬
dataSource="myCOMdataSource.htm">
This group defines a new implementation of the Repeat Region server behavior to use if you
use the COM data source. In the
applyServerBehaviors()
function, you can indicate that
this group should be applied by setting the
MM_dataSource
property on the parameter object,
as shown in the following example:
function applyServerBehavior(ssRec) {
var paramObj = new Object();
paramObj.rs = getComObjectName();
paramObj.MM_dataSource = "myCOMdataSource.htm";
dwscripts.applySB(paramObj, sbObj);
}
subType
Description
This advanced feature supports multiple implementations of a server behavior.
Multiple versions of a server behavior might differ, depending on user selection. When a
server behavior is applied, but multiple group files are relevant, the correct group file can be
selected by passing in a
subType
value. The group with that specific
subType
value is applied.
Summary of Contents for DREAMWEAVER 8-EXTENDING DREAMWEAVER
Page 1: ...Extending Dreamweaver...
Page 8: ...8 Contents...
Page 14: ...14 Introduction...
Page 16: ......
Page 54: ...54 Customizing Dreamweaver...
Page 96: ...96 Customizing Code View...
Page 98: ......
Page 110: ...110 Extending Dreamweaver...
Page 138: ......
Page 166: ...166 Insert Bar Objects...
Page 180: ...180 Commands...
Page 248: ...248 Toolbars...
Page 260: ...260 Reports...
Page 278: ...278 Tag Libraries and Editors...
Page 288: ...288 Property Inspectors...
Page 378: ...378 Server Behaviors...
Page 398: ...398 Data Sources...
Page 432: ...432 Server Models...
Page 456: ...456 Data Translators...
Page 482: ......
Page 492: ...492 The Shared Folder...