Adobe 38040334 - Dreamweaver CS3 User Manual page 251

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

Advertisement

• If the argument is an empty string, the Validator performs a default validation. If the argument is
Validator validates the document as XML.
• If the argument is
"auto-explicit"
(also known as an inline validation), which underlines errors in the Code view instead of opening the Validation
results window (see
"dom.source.getValidationErrorsForOffset()" on page 422
Count()" on page
416).
• If the
controlString
document before running the validation.
• If the
controlString
current document is unsaved.
Note: An automatic validation (that the
currently available only for a browser compatibility check.
• The
bOpenResultsWindow
false otherwise. The default value is
• The
bShowInfoMessage
or
explicit"
"auto-implicit"
mational message under the toolbar item,
displays nothing. The default value is
Returns
The Validation results window object.
Example
The following example runs a regular validation when the user selects the File > Check Page > Validate Markup menu
option (or Validate Current Document in the Validation panel):
dw.getDocumentDOM().runValidation('');
The following example prompts the user to save an unsaved document, runs an automatic validation, does not open
the Validation results window, but does show the total number of errors over the document toolbar button for
DW_ValidatorErrors:
dw.getDocumentDOM().runValidation('auto-explicit', false, true);
The following example does not prompt the user to save an unsaved document. If the document has not been saved,
the validation will not start. If the document has been saved, Dreamweaver runs an automatic validation, does not
open the Validation results window, and does not indicate the total number of errors encountered on the document
toolbar:
dw.getDocumentDOM().runValidation('auto-implicit', false);
dom.showInfoMessagePopup()
Availability
Dreamweaver MX 2004.
Description
Shows a tooltip-like message in the document window or under a toolbar item.
or
"auto-implicit"
argument is
"auto-explicit"
argument is
"auto-implicit"
controlString
argument is an optional Boolean value:
.
true
argument is used only when the
. The
bShowInfoMessage
DW_ValidatorErrors
.
false
, Dreamweaver performs an automatic validation
, Dreamweaver prompts the user to save an unsaved
, the validation fails without notifying the user that the
value
or
"auto-explicit"
opens the Validation results window;
true
argument is defined as
controlString
argument is a Boolean value:
, with the number of errors found;
DREAMWEAVER CS3
API Reference
, the
"xml"
and
"dom.getAutoValidation-
defines) is
"auto-implicit"
"auto-
shows an infor-
true
false
246

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents