Specifications

Server Formats 203
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 users document.
When the user changes the format of a dynamic data object (in the Dynamic Data or Dynamic
Text dialog box or the Bindings panel) or deletes a formatted dynamic data object, Dreamweaver
removes the function declaration from the top of the document and removes the function call
from the dynamic data object by calling the
deleteFormat() function.
The
deleteFormat() function should use the DOM to remove the function declaration from
the top of the current document.
Arguments
format
format
is a JavaScript object that describes the format to be removed. The JavaScript object is the
node that corresponds to the
<format> tag in the Formats.xml file.
Returns
Dreamweaver expects nothing.
formatDynamicDataRef()
Availability
Dreamweaver UltraDev 1
Description
Adds the format function call to the dynamic data object. When a user chooses a format from the
Format field in the Dynamic Data or Dynamic Text dialog box or the Bindings panel,
Dreamweaver makes two changes to the users document: It adds the appropriate format function
before the HTML tag (if its not already there), and it changes the dynamic data object to call the
appropriate format function.
Dreamweaver adds the function declaration by calling the
applyFormat() JavaScript
function in the data format file. It changes the dynamic data object by calling the
formatDynamicDataRef() function.
The
formatDynamicDataRef() function is called when the user selects a format from the Format
field in the Bindings panel or the Dynamic Data or Dynamic Text dialog box. It does not edit the
users document.