Adobe Extending Dreamweaver CS4 Instrukcja Użytkownika Strona 260

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 387
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 259
254
EXTENDING DREAMWEAVER CS4
Server behaviors
Arguments
serverBehavior
The serverBehavior JavaScript object represents the behavior.
Returns
Dreamweaver expects nothing.
displayHelp()
Description
If this function is defined, a Help button appears below the OK and Cancel buttons in the dialog box. This function is
called when the user clicks the Help button.
Arguments
None.
Returns
Dreamweaver expects nothing.
Example
// the following instance of displayHelp() opens
// in a browser a file that explains how to use
// the extension.
function displayHelp(){
var myHelpFile = dw.getConfigurationPath() +
'/ExtensionsHelp/superDuperHelp.htm';
dw.browseDocument(myHelpFile);
}
findServerBehaviors()
Availability
Dreamweaver UltraDev 1.
Description
Searches the user’s document for instances of itself. For each instance it finds, the findServerBehaviors() function
creates a JavaScript object, and it attaches state information as JavaScript properties of the object.
The four required properties are incomplete, participants, title, and selectedNode. You can set additional
properties as necessary.
For more information, see “dwscripts.findSBs()” on page 256 and dreamweaver.getParticipants() in the
Dreamweaver API Reference.
Arguments
None.
Przeglądanie stron 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 386 387

Komentarze do niniejszej Instrukcji

Brak uwag