Adobe 38040334 - Dreamweaver CS3 User Manual page 310

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

Advertisement

Returns
Dreamweaver expects the format object, if the function completes successfully. If an error occurs, the function
returns an error string. If it returns an empty string, the form is closed, but the new format is not created, which is
the same as a Cancel operation.
deleteFormat()
Availability
Dreamweaver UltraDev 1.
Description
Removes the format function declaration from the top of the user's document.
When the user changes the format of a dynamic data object (in the Dynamic Data or the Dynamic Text dialog box
or in the Bindings panel) or deletes a formatted dynamic data object, Dreamweaver removes the function declaration
from the top of the document and also removes the function call from the dynamic data object by calling the
function.
deleteFormat()
Use the DOM with the
deleteFormat()
document.
Arguments
format
The
argument is a JavaScript object that describes the format to remove. The JavaScript object is the node
format
that corresponds to the
format
Returns
Dreamweaver expects nothing.
formatDynamicDataRef()
Availability
Dreamweaver UltraDev 1.
Description
Adds the format function call to the dynamic data object. When a user selects a format from the Format text box in
the Dynamic Data or the Dynamic Text dialog box or in the Bindings panel, Dreamweaver makes two changes to the
user's document: It adds the appropriate format function before the HTML tag (if it's not already there), and it
changes the dynamic data object to call the appropriate format function.
Dreamweaver adds the function declaration by calling the
file. It changes the dynamic data object by calling the
The
formatDynamicDataRef()
Dynamic Data or the Dynamic Text dialog box or in the Bindings panel. It does not edit the user's document.
Arguments
,
dynamicDataObject
format
• The
dynamicDataObject
function to remove the function declaration from the top of the current
tag in the Formats.xml file.
formatDynamicDataRef()
function is called when the user selects a format from the Format text box in the
argument is a string that contains the dynamic data object.
JavaScript function in the data format
applyFormat()
function.
DREAMWEAVER CS3
304
Extending Dreamweaver

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents