The Server Formats Api - MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Table of Contents

Advertisement

The Server Formats API

The server formats API consists of the following data formatting functions.
applyFormat()
Availability
Dreamweaver UltraDev 1.
Description
This function can edit a user's document by adding a format function declaration to it. When
a user selects a format from the Format text field 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
function in the data format file. It changes the dynamic data object by calling the
formatDynamicDataRef()
The
applyFormat()
the user's document. For example, if the user selects Currency - Default, the function adds the
function declaration.
Currency
Arguments
format
The
argument is a JavaScript object that describes the format to apply. The
format
JavaScript object is the node that corresponds to the
The object has a JavaScript property for each attribute of the corresponding
Returns
Dreamweaver expects nothing.
applyFormatDefinition()
Availability
Dreamweaver UltraDev 1.
function.
function should use the DOM to add function declarations to the top of
JavaScript
applyFormat()
tag in the Formats.xml file.
format
The Server Formats API
tag.
format
403

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents