MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 534

Dreamweaver api reference
Table of Contents

Advertisement

Example
The following example calls
the offset of the current selection. If the function returns an error, the code calls the
function to display the error message to 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
false
Arguments
offset, string
The
argument is the offset from the beginning of the file where the string must
offset
be inserted.
The
argument is the string to insert.
string
534
Code
getValidationErrorsForOffset()
.
to check for any errors at
alert()

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents