526
Code
■
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();
dom.isDesignViewUpdated()
Availability
Dreamweaver 4.
Description
Determines whether the Design view and Text view content is synchronized for those
Dreamweaver operations that require a valid document state.
Arguments
None.
Returns
A Boolean value:
true
if the Design view (WYSIWYG) is synchronized with the text in the
Text view;
false
otherwise.
dom.isSelectionValid()
Availability
Dreamweaver 4.
Description
Determines whether a selection is valid, meaning it is currently synchronized with the Design
view, or if it needs to be moved before an operation occurs.
Arguments
None.
Returns
A Boolean value:
true
if the current selection is in a valid piece of code;
false
if the
document has not been synchronized, because the selection is not updated.
000_DW_API_Print.book Page 526 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...