Adobe 38040334 - Dreamweaver CS3 User Manual page 427

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

Advertisement

dom.source.getLineFromOffset()
Availability
Dreamweaver MX.
Description
Takes an offset into the source document.
Arguments
None.
Returns
The associated line number, or -1 if the offset is negative or past the end of the file.
dom.source.getText()
Availability
Dreamweaver 4.
Description
Returns the text string in the source between the designated offsets.
Arguments
startOffset, endOffset
• The
argument is an integer that represents the offset from the beginning of the document.
startOffset
• The
argument is an integer that represents the end of the document.
endOffset
Returns
A string that represents the text in the source code between the offsets
dom.source.getValidationErrorsForOffset()
Availability
Dreamweaver MX 2004.
Description
Returns a list of validation errors at the specified offset, or it searches from the offset for the next error. If none are
found the function, it returns
Arguments
offset, {searchDirection}
• The
argument is a number that specifies the offset in the code for which the function will return any
offset
errors.
• The
searchDirection
specified, the function searches forward or back from the given offset to the next characters with errors and
returns them. If not specified, the function simply checks for errors at the given offset.
.
null
argument, which is optional, is a string that specifies "
and
.
start
end
", "
empty
forward"
DREAMWEAVER CS3
422
API Reference
or "
If
back".

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents