MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 185

Dreamweaver api reference
Table of Contents

Advertisement

Example
The following example checks for errors at the offset of the current selection in the document
and, if there are errors, displays them in the specified window (
panel. Otherwise, it opens the Target Browser Check window of the Results panel and
displays the first visible item for the document.
var offset = dw.getDocumentDOM().source.getSelection()[0];
var errors =
dw.getDocumentDOM().source.getValidationErrorsForOffset(offset);
if ( errors && errors.length > 0 )
dw.showResults( errors[0].floaterName, errors[0].floaterIndex );
else
dw.showResults('btc', dw.getDocumentDOM().URL);
resWin.addItem()
Availability
Dreamweaver 4.
Description
Adds a new item to the Results window.
Use only on stand-alone results windows created with
dreamweaver.createResultsWindow(). resWin.addItem() cannot be used with the built-
in results windows, including Validation, Browser Target Check, or Site Reports.
Arguments
resultWindowObj, strIcon, strDesc, itemData, iStartSel, iEndSel, colNdata
The
resultWindowObj
function returns
.
The
argument is a string that specifies the path to the icon to use. To display a
strIcon
built-in icon, use a value "1" through "10" instead of the fully qualified path of the icon.
Specify
(zero) for no icon. The following table shows the icons that correspond to the
values of "1" through "10":
The
argument is a detailed description of the item. Specify
strDesc
no description.
argument is the object that the
) of the Results
floaterName
createResultsWindow()
if there is
Results window functions
185

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver 8

Table of Contents