![MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Скачать руководство пользователя страница 324](http://html1.mh-extra.com/html/macromedia/dreamweaver-8-dreamweaver-api/dreamweaver-8-dreamweaver-api_reference_3332054324.webp)
324
Document
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.
Arguments
location
,
message
,
timeout
■
The
location
argument is a string that specifies a toolbar item, or is an empty string, or
is one of the following keywords: "
top"
, "
topright"
, "
right"
, "
bottomright"
,
"
bottom"
, "
bottomleft"
, "
left"
, or "
topleft".
The tooltip is placed against the
specified edge or corner and is centered. An empty string causes it to be centered in the
document. To specify a toolbar item, use
"toolbar:
toolbarID
:
itemID
"
, where the
toolbar ID and toolbar item ID match the IDs in the toolbars.xml file.
■
The
message
argument is a string that contains the message.
■
The
timeout
argument is a number that specifies the milliseconds for which to display
the message. The default is 0. If the value is 0, the message stays indefinitely.
Dreamweaver automatically dismisses it if the user clicks it or switches documents, or if
the time out expires.
Returns
Nothing.
000_DW_API_Print.book Page 324 Wednesday, July 20, 2005 11:58 AM
Содержание DREAMWEAVER 8-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 16: ......
Страница 28: ...28 The File I O API...
Страница 38: ...38 The HTTP API...
Страница 68: ...68 Flash Integration...
Страница 100: ...100 The Database API...
Страница 116: ...116 The JavaBeans API...
Страница 144: ...144 The Source Control Integration API...
Страница 146: ......
Страница 254: ...254 Workspace...
Страница 298: ...298 Site...
Страница 354: ...354 Document...
Страница 396: ...396 Page Content...
Страница 488: ...488 Design...
Страница 550: ...550 Code...