Adobe Extending Dreamweaver CS4 Manual do Utilizador Página 307

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 387
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 306
301
EXTENDING DREAMWEAVER CS4
Data sources
generateDynamicDataRef()
Availability
Dreamweaver UltraDev 1.
Description
This function generates the dynamic data object for a child node.
Arguments
sourceName, bindingName
The sourceName argument is the name of the top-level node that is associated with the child node.
The bindingName argument is the name of the child node from which you want to generate a dynamic data object.
Returns
Dreamweaver expects a string, which can be passed to the formatDynamicDataRef() function to format it before
inserting it in a user’s document.
generateDynamicSourceBindings()
Availability
Dreamweaver UltraDev 1.
Description
This function returns the children of a top-level node.
Arguments
sourceName
The sourceName argument is the name of the top-level node whose children you want to return.
Returns
Dreamweaver expects an array of JavaScript objects where each object can have as many as four properties, which are
described in the following list:
The title property is the label string that appears on the right of the icon for each parent node. This property is
required.
The allowDelete property is optional. If this property is set to the value false, when the user clicks this node in
the Bindings panel, the Minus (-) button is disabled. If this property is set to the value
true, the Minus (-) button
is enabled. If the property is not defined, the default is the value
true.
The dataSource property is the simple name of the file in which the findDynamicSources() function is defined.
For example, the
findDynamicSources() function in the Session.htm file, which is located in the
Configuration/DataSources/ASP_Js folder, sets the
dataSource property to session.htm. This property is
required.
Vista de página 306
1 2 ... 302 303 304 305 306 307 308 309 310 311 312 ... 386 387

Comentários a estes Manuais

Sem comentários