SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1758 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


n Tango: Developed by Pervasive Software, the Tango translator compensates for differences
between database-oriented code and standard HTML. Additionally, Tango includes a manually
controlled Sample Data translator that enables the Web designer to view the page complete with
an example database.
Translator functions
Like other Dreamweaver extensions, such as behaviors and commands, translators are HTML files with
JavaScript. Translators have no user interface. Other than deciding when to invoke it, you have no parameters
to set or options from which to choose. All the pertinent code is in a script located in the of
the translator, which, along with any necessary support routines, includes two essential JavaScript functions:
getTranslatorInfo() and translateMarkup(). Any other Dreamweaver JavaScript API
functions not specific to behaviors can be used in a translator as well.
Because of the limitations of JavaScript, much of the heart of custom translation is handled by
specially written C-level extensions. These compiled code libraries enhance Dreamweaver??™s
capabilities so that new data types can be integrated. C-level extensions are covered in the ???Extending
C-Level Libraries??? section later in this chapter.
NOTE NOTE
NOTE NOTE
1043
Customizing Dreamweaver 33
The getTranslatorInfo() function
The getTranslatorInfo() function simply sets up and returns an array of text strings that are read by
Dreamweaver during initialization.


Pages:
1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770