MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 254

Extending dreamweaver
Table of Contents

Advertisement

5.
To call the
addItem()
Results window that was created by the stand-alone command. The
function can also call the
stop processing the list of files.
A simple stand-alone report example
The simple stand-alone report extension lists all the images referenced in a particular file and
displays the report in the Results window.
You create this extension by performing the following steps:
1.
Creating the dialog box UI
2.
Writing the JavaScript code
This example creates two files in the Configuration/Commands folder: List images.htm
which defines the UI of the dialog box that appears when the user selects the custom
command, and Listimages.js, which contains the JavaScript code specific to this report.
Creating the dialog box UI
The
of the HTML file specifies the contents of the dialog box that appears when the
BODY
user selects the custom command and calls any JavaScript files required.
To create the HTML file:
1.
Create the Configuration/Commands/Listimages.htm file.
2.
Enter the following in the Listimages.htm file:
<html>
<head>
<title>Standalone report example</title>
<script src="Listimages.js">
</script>
</head>
<body>
<div name="test">
<form name="myForm">
<table>
<tr>
<td>Click OK to display the standalone report.</td>
</tr>
</table>
</form>
</div>
</body>
3.
Save the file as Listimages.htm in the Configuration/Commands folder.
254
Reports
function, the
processFile()
stopProcessing()
function needs to have access to the
function of the Results window object to
processFile()

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?

This manual is also suitable for:

Dreamweaver 8

Table of Contents