MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifikace Strana 333

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 504
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 332
The Server Behavior API 333
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 users 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() and
dreamweaver.getParticipants() in the
Dreamweaver API Reference.
Arguments
None.
Returns
Dreamweaver expects an array of JavaScript objects; the length of the array is equal to the
number of behavior instances that are found in the page.
inspectServerBehavior()
Availability
Dreamweaver UltraDev 1.
Zobrazit stránku 332
1 2 ... 328 329 330 331 332 333 334 335 336 337 338 ... 503 504

Komentáře k této Příručce

Žádné komentáře