MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Especificaciones Pagina 331

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 504
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 330
The Server Behavior API 331
canApplyServerBehavior()
Availability
Dreamweaver UltraDev 1.
Description
Determines whether a behavior can be applied. Dreamweaver calls this function before the
Server Behaviors dialog box appears. If this function returns a
true value, the Server
Behaviors dialog box appears. If this function returns a
false value, the Server Behaviors
dialog box does not appear and the attempt to add a server behavior stops.
Arguments
serverBehavior
The serverBehavior JavaScript object represents the behavior; it is necessary to modify
an existing behavior. If this is a new behavior, the argument is
null.
Returns
Dreamweaver expects a Boolean value: true if the behavior can be applied; false otherwise.
copyServerBehavior()
Availability
Dreamweaver UltraDev 1.
Description
Implementing the copyServerBehavior() function is optional. Users can copy instances of
the specified server behavior. In the following example, this function is implemented for
recordsets. If a user selects a recordset in the Server Behaviors panel or the Data Binding
panel, using the Copy command copies the behavior to the Clipboard; using the Cut
command cuts the behavior to the Clipboard. For server behaviors that do not implement this
function, the Copy and Cut commands do nothing. For more information, see “How the
Server Behavior API functions are called” on page 326.
The
copyServerBehavior() function should rely only on behavior object properties that
can be converted into strings to exchange information with the
pasteServerBehavior()
function. The Clipboard stores only raw text, so
participant nodes in the document should
be resolved and the resulting raw text should be saved into a secondary property.
NOTE
The pasteServerBehavior() function must also be implemented to let the user paste the
behavior into any Dreamweaver document.
Vista de pagina 330
1 2 ... 326 327 328 329 330 331 332 333 334 335 336 ... 503 504

Comentarios a estos manuales

Sin comentarios