![MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Скачать руководство пользователя страница 337](http://html1.mh-extra.com/html/macromedia/dreamweaver-mx-2004-dreamweaver-api/dreamweaver-mx-2004-dreamweaver-api_reference_3336554337.webp)
Server behavior functions
337
dreamweaver.serverBehaviorInspector.getServerBehaviors()
Availability
Dreamweaver UltraDev 1.
Description
Gets a list of all the behaviors on the page. When Dreamweaver determines that the internal list
of server behaviors might be out of date, it calls the
findServerBehaviors()
function for each
currently installed behavior. Each function returns an array. Dreamweaver merges all the arrays
into a single array and sorts it, based on the order that each behavior’s
selectedNode
object
appears in the document. Dreamweaver stores the merged array internally. The
getServerBehaviors()
function returns a pointer to that merged array.
Arguments
None.
Returns
An array of JavaScript objects. The
findServerBehaviors()
call returns the objects in the array.
The objects are sorted in the order that they appear in the Server Behaviors panel.
dreamweaver.popupServerBehavior()
Availability
Dreamweaver UltraDev 1.
Description
Applies a new server behavior to the document or modifies an existing behavior. If the user must
specify parameters for the behavior, a dialog box appears.
Arguments
{behaviorName
or
behaviorObject}
•
The
behaviorName
argument, which is optional, is a string that represents the behavior’s
name, the title tag of a file, or a filename.
•
The
behaviorObject
argument, which is optional, is a behavior object.
If you omit the argument, Dreamweaver runs the currently selected server behavior. If the
argument is the name of a server behavior, Dreamweaver adds the behavior to the page. If the
argument is one of the objects in the array that the
getServerBehaviors()
function returns, a
dialog box appears so the user can modify the parameters for the behavior.
Returns
Nothing.
000_DW_API_Print.book Page 337 Wednesday, August 20, 2003 9:14 AM
Содержание DREAMWEAVER MX 2004-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...