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
Содержание DREAMWEAVER MX 2004-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...