The Server Behavior Api - Adobe 38040334 - Dreamweaver CS3 User Manual

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

Advertisement

If you do not want a file that is in the ServerBehaviors folder to appear in the menu, put the following statement on
the first line in the HTML file:
<!-- MENU-LOCATION=NONE -->
• When the user selects an item from the menu, the
function returns a
true
function is called.
• If the user edits an existing server behavior by double-clicking it, Dreamweaver displays the dialog box, executes
the
handler on the
onLoad
inspectServerBehavior()
user clicks OK, Dreamweaver calls the
• If the user clicks the Minus (-) button, the
deleteServerBehavior()
• When the user selects a server behavior and uses the Cut or Copy commands, Dreamweaver passes the object that
represents the server behavior to its
adds any other properties to the server behavior object that are needed to paste it later.
After the
copyServerBehavior()
that can be put on the Clipboard. When Dreamweaver converts the object, it deletes all the properties that reference
objects; every property on the object that is not a number, Boolean value, or string is lost.
When the user uses the Paste command, Dreamweaver unpacks the contents of the Clipboard and generates a new
server behavior object. The new object is identical to the original, except that it does not have properties that
reference objects. Dreamweaver passes the new server behavior object to the
The
pasteServerBehavior()
pasteServerBehavior()
new list of all the server behaviors in the user's document.
Users can copy and paste behaviors from one document to another. The
pasteServerBehavior()

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()
behaviors in the user's document appears. The
object in this array. For example, for a Dynamic Text behavior, Dreamweaver calls the
function in the DynamicText.htm (or DynamicText.js) file.
canApplyServerBehavior()
value, a dialog box appears. When the user clicks OK, the
tag, if one exists, and then calls the
body
function populates the form elements with the current argument values. When the
applyServerBehavior()
deleteServerBehavior()
function removes the behavior from the document.
copyServerBehavior()
function returns, Dreamweaver converts the server behavior object to a form
function adds the behavior to the user's document. After the
function returns, Dreamweaver calls the
functions should rely only on properties on the behavior object to exchange information.
and
incomplete
deleted
function is called for every server behavior on the page, an array of all the
analyzeServerBehavior()
inspectServerBehavior()
function again.
function is called. The
function. The
copyServerBehavior()
pasteServerBehavior()
findServerBehaviors()
copyServerBehavior()
properties.
function is called for each JavaScript
DREAMWEAVER CS3
Extending Dreamweaver
function is called. If that
applyServerBehavior()
function. The
function
function.
function to get a
and
analyzeServerBehavior()
248

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents