Dom.getshownoscript(); Dom.getautovalidationcount() - MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Reference

Dreamweaver api reference
Table of Contents

Advertisement

Arguments
None.
Returns
Nothing.

dom.getShowNoscript()

Availability
Dreamweaver MX.
Description
Gets the current state of the
option). On by default, the
not (by choice), in the browser.
Arguments
None.
Returns
A Boolean value:

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
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
The
numWarning
The
numInfo
Example
theDom = dw.getDocumentDOM();
theDom.runValidation();
theDom.getAutoValidationCount();
noscript
noscript
if the
true
noscript
property, which is the number of errors
property, which is the number of warnings
property, which is the number of information messages
content option (from the View > Noscript Content menu
tag identifies page script content that can be rendered, or
tag content is currently rendered;
"dom.runValidation()" on page
otherwise.
false
268).
Code view functions
409

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents