Adobe 38040334 - Dreamweaver CS3 User Manual page 231

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

documentEdited()
Description
This function is called when the floating panel becomes visible and after the current series of edits is complete; that
is, multiple edits might occur before this function is called. This function should be defined only if the floating panel
must track edits to the document.
Note: Define the
documentEdited()
Arguments
None.
Returns
Dreamweaver expects nothing.
Example
The following example of the
field that displays the number of
function documentEdited(){
/* create a list of all the AP elements in the document */
var theDOM = dw.getDocumentDOM();
var layersInDoc = theDOM.getElementsByTagName("layer");
var layerCount = layersInDoc.length;
/* update the numOfLayers field with the new layercount */
document.theForm.numOfLayers.value = layerCount;
}
getDockingSide()
Availability
Dreamweaver MX.
Description
Specifies the locations at which a floating panel can dock. The function returns a string that contains some combi-
"left"
nation of the words
to that side. If the function is missing, you cannot dock a floating panel to any side.
You can use this function to prevent certain panels from docking on a certain side of the Dreamweaver workspace
or to each other.
Arguments
None.
Returns
Dreamweaver expects a string containing the words
that specifies where Dreamweaver can dock the floating panel.
function only if you require it because its existence impacts performance.
function scans the document for
documentEdited()
AP elements in the document:
"right"
"top"
"bottom"
,
,
, and
"left"
. If the label is in the string, you can dock a floating panel
,
"right"
,
"top"
, and
"bottom"
DREAMWEAVER CS3
Extending Dreamweaver
AP element s and updates a text
, or a combination of them,
225

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents