Translatemarkup(); Livedatatranslatemarkup() - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

translateMarkup()

Description
This function performs the translation.
Arguments
,
docName
siteRoot
The
docName
translated.
The
siteRoot
contains the document to be translated. If the document is outside a site, this string might be
empty.
The
docContent
Returns
A string that contains the translated document or an empty string if nothing is translated.
Example
The following instance of the
translateASP()
called ASPTrans:
function translateMarkup(docName, siteRoot, docContent){
var translatedString = "";
if (docContent.length > 0){
translatedString = ASPTrans.translateASP(docName, siteRoot, ¬
docContent);
}
return translatedString;
}
For an all-JavaScript example, see
simple block/tag translator example" on page

liveDataTranslateMarkup()

Availability
Dreamweaver UltraDev 1.
Description
This function translates documents when users are using the Live Data window. When the user
selects the View > Live Data menu item or clicks the Refresh button, Dreamweaver calls the
liveDataTranslateMarkup()
338
Chapter 20: Data Translators
,
docContent
argument is a string that contains the file:// URL for the document to be
argument is a string that contains the file:// URL for the root of the site that
argument is a string that contains the contents of the document.
translateMarkup()
, which is contained in a DLL (Windows) or a code library (Macintosh)
"A simple attribute translator example" on page 341
function instead of the
function calls the C function
346.
translateMarkup()
or
"A
function.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents