MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Spezifikationen Seite 167

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 504
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 166
167
7
CHAPTER 7
Commands
Macromedia Dreamweaver 8 commands can perform almost any kind of edit to a user’s
current document, other open documents, or any HTML document on a local drive.
Commands can insert, remove, or rearrange HTML tags and attributes, comments, and text.
Commands are HTML files. The
BODY section of a command file can contain an HTML
form that accepts options for the command (for example, how a table should be sorted and by
which column). The
HEAD section of a command file contains JavaScript functions that
process form input from the
BODY section and control what edits are made to the users
document.
The following table lists the files you use to create a command:
How commands work
When a user clicks a menu that contains a command, the following events occur:
1. Dreamweaver calls the canAcceptCommand() function to determine whether the menu
item should be disabled. If the
canAcceptCommand() function returns a false value, the
command is dimmed in the menu, and the procedure stops. If the
canAcceptCommand()
function returns a
true value, the procedure can continue.
2. The user selects a command from the menu.
3. Dreamweaver calls the receiveArguments() function, if defined, in the selected
Command file to let the command process any arguments that pass from the menu item
or from the
dreamweaver.runCommand() function. For more information on the
dreamweaver.runCommand() function, see the Dreamweaver API Reference.
Path File Description
Configuration/Commands/ commandname.htm Specifies the user interface.
Configuration/Commands/ commandname.js Contains the functions to execute.
Seitenansicht 166
1 2 ... 162 163 164 165 166 167 168 169 170 171 172 ... 503 504

Kommentare zu diesen Handbüchern

Keine Kommentare