Translation Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Dreamweaver calls the
7
text()
or a directive). Text spans include text that is not visible to the user, such as the text inside a
tag. The
function accepts two arguments, a string that contains the text and the document offset, which is
text()
the number of bytes in the document before the closing of the closing tag. The
value that indicates whether scanning should continue.
Arguments
HTMLstr, parserCallbackObj
• The
argument is a string that contains code.
HTMLstr
• The
parserCallbackObj
,
openTagBegin()
openTagEnd()
. For best performance,
text()
Extensibility interface. Performance is also improved if
that it needs.
Returns
A Boolean value:
if the operation completed successfully;
true
Example
The following sequence of steps provide an example of how to use the
function:
1
Create an implementation for one or more of the seven callback functions.
Write a script that calls the
2
3
The
dreamweaver.scanSourceString()
callback functions that you wrote. For example, the string of HTML is
Dreamweaver analyzes the string and determines that the string contains a font tag. Dreamweaver calls the
4
callback functions in the following sequence:
• The
function
openTagBegin()
• The
function (for the size attribute)
attribute()
• The
function
openTagEnd()
• The
function (for the
text()
• The
closeTagBegin()

Translation functions

Translation functions deal either directly with translators or with translation results. These functions get information
about or run a translator, edit content in a locked region, and specify that the translated source should be used when
getting and setting selection offsets.
dom.runTranslator()
Availability
Dreamweaver 3.
function for each span of text in the document (that is, everything that is not a tag
argument is a JavaScript object that has one or more of the following methods:
,
closeTagBegin()
parserCallbackObj
dreamweaver.scanSourceString()
function passes a string that contains HTML and pointers to the
string)
"hello"
and
functions
closeTagEnd()
text()
,
,
closeTagEnd()
directive()
should be a shared library that is defined using the C-Level
defines only the callback functions
parserCallbackObj
otherwise.
false
dreamweaver.scanSourceString()
function.
"<font size=2>hello</font>"
DREAMWEAVER CS3
API Reference
or
<title>
<option>
function returns a Boolean
,
, and
attribute()
.
265

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents