User Guide
Code view functions 409
Arguments
None.
Returns
Nothing.
dom.getShowNoscript()
Availability
Dreamweaver MX.
Description
Gets the current state of the noscript content option (from the View > Noscript Content menu
option). On by default, the
noscript tag identifies page script content that can be rendered, or
not (by choice), in the browser.
Arguments
None.
Returns
A Boolean value: true if the noscript tag content is currently rendered; false otherwise.
dom.getAutoValidationCount()
Availability
Dreamweaver MX 2004.
Description
Gets the number of errors, warnings, and information messages for the last auto-validation (also
known as an inline validation) of the document. Currently only a target-browser check is
performed during auto-validation (see “dom.runValidation()” on page 268).
Note: This function returns only the results that are currently in the results window for the document. If
you want to make sure that the counts are up-to-date, you can call dom.runValidation() before calling
this function.
Arguments
None.
Returns
An object with the following properties:
• The numError property, which is the number of errors
• The numWarning property, which is the number of warnings
• The numInfo property, which is the number of information messages
Example
theDom = dw.getDocumentDOM();
theDom.runValidation();
theDom.getAutoValidationCount();
000_DW_API_Print.book Page 409 Wednesday, August 20, 2003 9:14 AM