MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Bedienungsanleitung Seite 23

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 28
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 22
Customizing Macromedia Dreamweaver MX 23
Extending Dreamweaver: Basics
Dreamweaver is designed to be extensible. It includes a JavaScript interpreter, so it can read and
execute JavaScript code; and it provides a set of extensibility APIs (application programming
interfaces); each extensibility API is a set of JavaScript or C functions that enable extension developers
to add capabilities to Dreamweaver. Dreamweaver also provides a Document Object Model (DOM),
which allows extensions to examine and modify a document’s structure and contents.
Using the extensibility APIs, you can create a variety of different kinds of extensions to
Dreamweaver, including objects, commands, toolbars, Property inspectors, behavior actions,
server behaviors, data sources, server models, and data translators, among others.
You can also create new objects and simple commands without knowing anything about
programming; for more information, see “Creating a simple object” on page 7 and Dreamweaver
Help. But to add more advanced capabilities to Dreamweaver, you must write extensions in either
JavaScript or C. For information about the APIs and the DOM, see Extending Dreamweaver
(Help > Extending Dreamweaver).
After you create a Dreamweaver extension, you can package it and distribute it on the
Macromedia Exchange site if you want other Dreamweaver users to be able to use it. For more
information, choose Help > Creating and Submitting Extensions, or see the Macromedia
Exchange for Dreamweaver site at www.macromedia.com/exchange/dreamweaver.
About JavaScript
JavaScript is an interpreted programming language. To learn more about JavaScript, read a good
JavaScript book, such as JavaScript Bible by Danny Goodman (IDG) or JavaScript: The Definitive
Guide by David Flanagan (O’Reilly). For information on using JavaScript to extend
Dreamweaver, see Extending Dreamweaver (Help > Extending Dreamweaver).
Note: Despite the resemblance between the two names, JavaScript is not related to Java.
Editing Dreamweaver commands
All the commands in Dreamweaver menus, including those you create and save using the History
panel (see Dreamweaver Help), are implemented in JavaScript. This JavaScript code usually
consists mostly of calls to functions provided by the Dreamweaver extensibility API. If you know
JavaScript and understand the Dreamweaver extensibility API, you can edit the JavaScript to
change the operation of Dreamweaver commands.
Note: Don’t attempt to change any JavaScript code unless you’re certain you know what you’re doing. Even if you
do know what you’re doing, make a backup copy of the file containing the code before you modify it.
To rename a command, move a command to a different menu, or add a keyboard shortcut to a
command, see “About customizing Dreamweaver menus” on page 9.
Customizing the interpretation of third-party tags
Server-side technologies such as ASP, ColdFusion, JSP, and PHP use special non-HTML code in
HTML files; servers create and serve HTML content based on that code. When Dreamweaver
encounters non-HTML tags, it compares them with information in its third-party tag files, which
define how Dreamweaver reads and displays non-HTML tags.
Seitenansicht 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28

Kommentare zu diesen Handbüchern

Keine Kommentare