MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Spezifikationen Seite 454

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 504
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 453
454 Data Translators
transArray[11] = "50";
return transArray;
}
translateMarkup()
Description
This function performs the translation.
Arguments
docName, siteRoot, docContent
The docName argument is a string that contains the file:// URL for the document to be
translated.
The siteRoot argument is a string that contains the file:// URL for the root of the site
that contains the document to be translated. If the document is outside a site, this string
might be empty.
The docContent argument is a string that contains the contents of the document.
Returns
A string that contains the translated document or an empty string if nothing is translated.
Example
The following instance of the translateMarkup() function calls the C function
translateASP(), which is contained in a dynamic link library (DLL) (Windows) or a code
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 A simple attribute translator example” on page 443 or “A
simple block/tag translator example” on page 447.
Seitenansicht 453
1 2 ... 449 450 451 452 453 454 455 456 457 458 459 ... 503 504

Kommentare zu diesen Handbüchern

Keine Kommentare