Adobe 38040334 - Dreamweaver CS3 User Manual page 428

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

Advertisement

Returns
An array of objects or the value
• The
object is a string that contains the error message.
message
• The
object is a string that contains the name of the results window. You can pass this value to the
floaterName
or
showResults()
setFloaterVisibility()
• The
object is an index of items in the floater results list.
floaterIndex
• The
object is the opening index of underlined code.
start
• The
object is the closing index of underlined code.
end
Note: The returned floater indexes should not be stored because they can change frequently, such as when documents
are opened or closed.
Example
The following example calls
selection. If the function returns an error, the code calls the
user.
var offset = dw.getDocumentDOM().source.getSelection()[0];
var errors = dw.getDocumentDOM().source.getValidationErrorsForOffset(offset);
if ( errors && errors.length > 0 )
alert( errors[0].message );
dom.source.indentTextview()
Availability
Dreamweaver 4.
Description
Moves selected Code view text one tab stop to the right.
Arguments
None.
Returns
Nothing.
dom.source.insert()
Availability
Dreamweaver 4.
Description
Inserts the specified string into the source code at the specified offset from the beginning of the source file. If the
offset is not greater than or equal to zero, the insertion fails and the function returns
Arguments
offset, string
• The
argument is the offset from the beginning of the file where the string must be inserted.
offset
. Each object in the array has the following properties:
null
functions.
getValidationErrorsForOffset()
to check for any errors at the offset of the current
function to display the error message to the
alert()
false
DREAMWEAVER CS3
API Reference
.
423

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents