Chapter 20. Data Translators

 < Day Day Up > 

Data translators translate specialized markup server-side includes, conditional JavaScript statements, or other code such as PHP3, JSP, CFML, or ASP into code that Macromedia Dreamweaver 8 can read and display. In Dreamweaver, you can translate attributes within tags as well as entire tags or blocks of code. All data translators block/tag or attribute are HTML files.

Translated tags or blocks of code must be enclosed in locked regions to preserve the original markup. Translated attributes do not require locks, which makes it simple to inspect the tags that contain them.

Data translation especially for entire tags or blocks of code might involve complex operations that either cannot be done with JavaScript or that can be done more efficiently using C. If you are familiar with C or C++, you should also read Chapter 21, "C-Level Extensibility," on page 457.

The following table lists the files you use to create a data translator:

Path

File

Description

Configuration/ThirdPartyTags/

language.xml

Contains information about tags in the markup language.

Configuration/thirdPartyTags

language.gif

Icon for tags in the language.

Configuration/Translators/

language.htm

Contains JavaScript functions for the data translator.


     < Day Day Up > 


    Developing Extensions for Macromedia Dreamweaver 8
    Developing Extensions for Macromedia Dreamweaver 8
    ISBN: 0321395409
    EAN: 2147483647
    Year: 2005
    Pages: 282

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net