The Server Behavior Api - MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Table of Contents

Advertisement

The Server Behavior API

You can manage server behaviors with the following API functions.
analyzeServerBehavior()
Availability
Dreamweaver UltraDev 1
Description
Lets server behaviors set their
After the
findServerBehaviors()
an array of all the behaviors in the user's document appears. The
function is called for each JavaScript object in this array. For example, for a Dynamic Text
behavior, Dreamweaver calls the
DynamicText.htm (or DynamicText.js) file.
One purpose of the
analyzeServerBehavior()
(
,
incomplete
participants
it's easier to perform this task after the
complete list of server behaviors in the user's document.
The other purpose of the
more behaviors refer to the same tag in the user's document. In this case, the
property removes all but one behavior from the array.
Suppose the Recordset1, DynamicText1, and DynamicText2 server behaviors are on a page.
Both DynamicText server behaviors need Recordset1 to exist on the page. After the server
behaviors are found with the
analyzeServerBehavior()
analyzeServerBehavior()
array of all the server behavior objects on the page, looking for the one that belongs to
Recordset1. If a server behavior object that belongs to Recordset1 cannot be found, the
property is set to the value
incomplete
Server Behaviors panel, which alerts the user that a problem exists. Similarly, when the
analyzeServerBehavior()
the object that belongs to Recordset1. Because Recordset1 does not depend on other server
behaviors, it does not need to define the
example.
and
incomplete
function is called for every server behavior on the page,
analyzeServerBehavior()
,
, and
selectedNode
findServerBehaviors()
analyzeServerBehavior()
findServerBehaviors()
function for the three server behaviors. When the
function is called for DynamicText1, the function searches the
so that an exclamation point appears in the
true
function is called for DynamicText2, the function searches for
analyzeServerBehavior()
properties.
deleted
analyzeServerBehavior()
function in the
function is to finish setting all the properties
) on the behavior object. Sometimes
title
function generates the
function is to notice when two or
function, Dreamweaver calls the
The Server Behavior API
deleted
function in this
329

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents