Adobe 38040334 - Dreamweaver CS3 User Manual page 144

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Arguments
floaterName, floaterIndex
• The
argument is a string that specifies the results floating panel to open. Valid values are
floaterName
'
, or
validation'
'reports'
• The
argument is a number or string. Use a number to specify the index of an item to select in the
floaterIndex
Results panel. Use a string to specify the URL of a document. If you specify a URL, the function selects the first
visible item for that document.
Returns
Nothing.
Example
The following example checks for errors at the offset of the current selection in the document and, if errors are
present, displays them in the specified window (
Compatibility Check window of the Results panel and displays the first visible item for the current 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('bcc', dw.getDocumentDOM().URL);
dreamweaver.resultsPalette.siteReports.addResultItem()
Availability
Dreamweaver 4.
Description
Adds a new results entry to the Site Reports panel, based on the information in the file that the
function processes.
This function is only available in the
"Reports" in Extending Dreamweaver.
Arguments
strFilePath, strIcon, strDisplay, strDesc, {iLineNo}, {iStartSel}, {iEndSel}
• The
argument is a fully qualified URL path of the file to process.
strFilePath
• The
argument is the path to the icon to use. To display a built-in icon, use a value "1" through "10" instead
strIcon
of the fully qualified path for the icon (use "0" for no icon). The following table shows the icons that correspond
to the values of "1" through "10":
• The
argument is the string to display to the user in first column of the Results window (usually, the
strDisplay
filename).
.
floaterName
callback of a site report. For details on site reports, see
processFile()
) of the Results panel. Otherwise, it opens the Browser
DREAMWEAVER CS3
API Reference
processfile()
139

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents