Adobe 38040334 API Reference - Page 427
dom.source.getLineFromOffset, dom.source.getText, found the function, it returns
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 427 highlights
DREAMWEAVER CS3 422 API Reference 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 startOffset argument is an integer that represents the offset from the beginning of the document. • The endOffset argument is an integer that represents the end of the document. Returns A string that represents the text in the source code between the offsets start and end. 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 null. Arguments offset, {searchDirection} • The offset argument is a number that specifies the offset in the code for which the function will return any errors. • The searchDirection argument, which is optional, is a string that specifies "empty", "forward" or "back". If 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.