MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifikace Strana 250

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 504
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 249
250 Reports
How site reports work
1. Reports are accessible through the Site > Reports command. When it is selected, this
command displays a dialog box from which the user selects reports to run on a choice of
targets.
2. The user selects which files to run the selected reports on using the Report On: pop-up
menu. This menu contains the Current Document, Entire Current Local Site, Selected
Files In Site, and Folder commands. When the user selects the Folder command, a Browse
button and text field appear, so the user can select a folder.
3. The user can customize reports that have parameters by clicking the Settings button and
entering values for the parameters. To let a user set report parameters, a report must contain
a Settings dialog box. This dialog box is optional; not every report requires the user to set
the report’s parameters. If a report does not have a Settings dialog box, the Settings button
is dimmed when a user selects the report in the list.
4. After selecting the reports and specifying the settings, the user clicks the Run button.
At this point, Dreamweaver clears all items from the Site Reports tab of the Results panel.
Dreamweaver calls the
beginReporting() function in each report before the reporting
process begins. If a report returns a
false value from this function, it is removed from the
report run.
5. Each file is passed to each report that was selected in the Reports dialog box using the
processFile() function. If the report needs to include information about this file in the
results list, it should call the
dw.resultsPalette.siteReports.addResultItem()
function. This process continues until all files that pertain to the user’s selection are
processed or the user clicks the Stop button in the bottom of the window. Dreamweaver
displays the name of each file being processed and the number of files that remain to be
processed.
Dreamweaver calls the
endReporting() function in each report after all the files have
been processed and the reporting process completes.
A simple site report example
The simple extension example lists all the images referenced in a particular file, an entire site,
selected files, or a folder and displays the report in the Results window under the Site
Results tab.
NOTE
If a report has the preventFileActivity handler, Dreamweaver prevents the user
from performing any other file activity while this report is being run.
Zobrazit stránku 249
1 2 ... 245 246 247 248 249 250 251 252 253 254 255 ... 503 504

Komentáře k této Příručce

Žádné komentáře