transArray[11] = "50";
return transArray;
}
translateMarkup()
Description
This function performs the translation.
Arguments
,
,
docName
siteRoot
The
argument is a string that contains the file:// URL for the document to be
docName
translated.
The
argument is a string that contains the file:// URL for the root of the site
siteRoot
that 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
, which is contained in a dynamic link library (DLL) (Windows) or a code
translateASP()
library (Macintosh) 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
454
Data Translators
docContent
argument is a string that contains the contents of the document.
translateMarkup()
"A simple attribute translator example" on page 443
function calls the C function
447.
or
"A
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers