MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifikace Strana 403

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 504
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 402
The Server Formats API 403
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 users 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 users 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
applyFormat() JavaScript
function in the data format file. It changes the dynamic data object by calling the
formatDynamicDataRef() function.
The
applyFormat() function should use the DOM to add function declarations to the top of
the user’s document. For example, if the user selects Currency - Default, the function adds the
Currency function declaration.
Arguments
format
The format argument is a JavaScript object that describes the format to apply. The
JavaScript object is the node that corresponds to the
format tag in the Formats.xml file.
The object has a JavaScript property for each attribute of the corresponding
format tag.
Returns
Dreamweaver expects nothing.
applyFormatDefinition()
Availability
Dreamweaver UltraDev 1.
Zobrazit stránku 402
1 2 ... 398 399 400 401 402 403 404 405 406 407 408 ... 503 504

Komentáře k této Příručce

Žádné komentáře