Specifications
Server Behaviors 183
dreamweaver.getExtGroups()
Availability
Dreamweaver UltraDev 4
Description
Retrieves the name of the group, which is the equivalent to the server behavior’s name, from an
EDML group file.
Arguments
value, qualifier(s)
• value is a property value or blank to ignore.
• qualifier(s) is a variable length list of comma-separated node qualifiers of required
property.
Returns
Array of group names that have the specified property, if given, and the property matches the
specified value, if given.
dreamweaver.refreshExtData()
Availability
Dreamweaver UltraDev 4
Description
Reloads all extension data files.
Tip: You can make a useful command from this function, letting edits to server behavior EDML files be reloaded
without restarting Dreamweaver MX.
Arguments
None.
Returns
Reloaded data.
Server behavior techniques
This section covers the common and advanced techniques that are used to create and edit server
behaviors. Most of the suggestions involve specific settings in the EDML files.
Finding server behaviors
Writing search patterns In order to update or delete server behaviors, you must provide a way
for Dreamweaver to find each instance in a document. This requires a
quickSearch tag and at
least one
searchPattern tag, which is contained within the searchPatterns tag.
The
quickSearch tag should be a string, not a regular expression, that indicates that the server
behavior might exist on the page. It is not case-sensitive. It should be short and unique, and avoid
spaces and other sections that can be changed by the user. The following example shows a
participant that consists of the simple ASP JavaScript tag:
<% if (Recordset1.EOF) Response.Redirect("some_url_here") %>