Specifications
The Dreamweaver JavaScript API 409
• The dataSource property is the simple name of the file in which the findDynamicSources() 
function is defined. For example, the 
findDynamicSources() function in Configuration/
DataSources/ASP_Js/Session.htm would set the 
dataSource property to session.htm. This 
is always defined.
• The name property is the name of the server behavior associated with the data source, 
dataSource, if one exists. The name property is always defined, but can be an empty string 
(
"") if no server behavior is associated with the data source (such as a session variable).
Enablers
Enabler functions determine whether to enable menu items based on whether Dreamweaver can 
perform specific operations in the current context. The function specifications describe the 
general circumstances under which each function returns a value of 
true. However, the 
descriptions are not intended to be comprehensive and might exclude some cases in which the 
function would return a value of 
false.
dom.canAlign()
Availability
Dreamweaver 3
Description
Checks whether Dreamweaver can perform an Align Left, Align Right, Align Top, or Align 
Bottom operation.
Arguments
None.
Returns
A Boolean value that indicates whether two or more layers or hotspots are selected.
dom.canApplyTemplate()
Availability
Dreamweaver 3
Description
Checks whether Dreamweaver can perform an Apply To Page operation. This function is valid 
only for the active document.
Arguments
None.
Returns
A Boolean value that indicates whether the document is not a library item or a template, and that 
the selection is not within the 
NOFRAMES tag.










