MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 251

Extending dreamweaver
Table of Contents

Advertisement

You create this extension by performing the following steps:
Creating the report definition
Writing the JavaScript code
This example creates two files in the HTML Reports folder: List images.htm, which contains
the report definition, and List Images.js, which contains the JavaScript code specific to this
report. In addition, you reference the Reports.js file, which is included with Dreamweaver.
Creating the report definition
The report definition specifies the name of the report as it appears in the Reports dialog box,
calls any JavaScript files required, and defines the user interface of the Settings dialog box, if
needed.
To create the report definition:
1.
Create the file Configuration/Reports/HTML Reports/List images.htm.
2.
Add the following to specify the name of the report that you want to appear in the Reports
dialog box in the title of the HTML page.
<html>
<head>
<title>List Images</title>
3.
At the end of the file, add the
<script src="../Reports.js"></script>
4.
At the end of the file, add another
will create next, in the
<html>
<head>
<title>List Images</title>
<script src="../Reports.js"></script>
<script src="List Images.js"></script>
5.
Close the
tag, include opening and closing
head
</head>
<body>
</body>
</html>
6.
Save the file as List images in the Configuration/Reports/HTML Reports folder.
tag and specify the Reports.js file in the
script
tag and specify the List Images.js file, which you
script
attribute.
src
tags, and close the
body
attribute.
src
tag.
html
Site reports
251

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Dreamweaver 8

Table of Contents