MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Spezifikationen Seite 381

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 504
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 380
How data sources work 381
Request
NameOfRequestVariable
NameOfAnotherRequestVariable
Session
NameOfSessionVariable
4.
If the user double-clicks on a data source name in the Bindings panel to edit the data
source, Dreamweaver calls the
editDynamicSource() function to handle the user edits
within the tree.
5. If the user clicks the Minus (-) button, Dreamweaver gets the current node selection from
the tree and passes it to the
deleteDynamicSource() function, which deletes the code that
was added earlier with the
addDynamicSource() function. If it cannot delete the current
selection, the function returns an error message. After the
deleteDynamicSource()
function returns, Dreamweaver refreshes the data source tree by calling the
findDynamicSources() and the generateDynamicSourceBindings() functions.
6. If the user selects a data source and clicks OK in the Dynamic Data or the Dynamic Text
dialog box, or clicks Insert or Bind in the Bindings panel, Dreamweaver calls the
generateDynamicDataRef() function. The return value is inserted in the document at the
current insertion point.
7. If the user displays the Dynamic Data or the Dynamic Text dialog box to edit an existing
dynamic data object, the selection in the data source tree needs to be initialized to the
dynamic data object. To initialize the tree control, Dreamweaver goes through each file in
the appropriate server model folder (for example, the Configuration/DataSources/ASP_Js
folder), calling the implementation of the
inspectDynamicDataRef() function in each
file.
Dreamweaver calls the
inspectDynamicDataRef() function to convert the dynamic data
object back from the code in the users document to an item in the tree. (This process is
the reverse of what occurs when the
generateDynamicDataRef() function is called.) If
the
inspectDynamicDataRef() function returns an array that contains two elements,
Dreamweaver shows with a visual cue which item in the tree is bound to the current
selection.
Seitenansicht 380
1 2 ... 376 377 378 379 380 381 382 383 384 385 386 ... 503 504

Kommentare zu diesen Handbüchern

Keine Kommentare