Adobe Dreamweaver API Reference CS5 Uživatelský manuál Strana 495

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 533
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 494
490
DREAMWEAVER API REFERENCE
Code
Last updated 8/27/2013
Returns
A string: the name of the tag that is currently selected in the Tag Library editor; returns an empty string if no tag is
selected.
dreamweaver.tagLibrary.importDTDOrSchema()
Availability
Dreamweaver MX.
Description
This function imports a DTD or schema file from a remote server into the tag library.
Arguments
fileURL, Prefix
The fileURL argument is the path to DTD or schema file, in local URL format.
The Prefix argument is the prefix string that should be added to all tags in this tag library.
Returns
Name of the imported tag library.
dreamweaver.tagLibrary.getImportedTagList()
Availability
Dreamweaver MX.
Description
This function generates a list of tagInfo objects from an imported tag library.
Arguments
libname
The libname argument is the name of the imported tag library.
Returns
Array of tagInfo objects.
A taginfo object contains information about a single tag that is included in the tag library. The following properties
are defined in a
tagInfo object:
The tagName property, which is a string
The attributes property, which is an array of strings. Each string is the name of an attribute that is defined for
this tag.
Example:
The following example shows that using the dw.tagLibrary.getImportedTagList() function can get an array of
tags from the
libName library:
Zobrazit stránku 494
1 2 ... 490 491 492 493 494 495 496 497 498 499 500 ... 532 533

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

Žádné komentáře