Adobe 38040334 - Dreamweaver CS3 User Manual page 439

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
argument is the path to DTD or schema file, in local URL format.
fileURL
• The
argument is the prefix string that should be added to all tags in this tag library.
Prefix
Returns
Name of the imported tag library.
dreamweaver.tagLibrary.getImportedTagList()
Availability
Dreamweaver MX.
Description
This function generates a list of
Arguments
libname
• The
argument is the name of the imported tag library.
libname
Returns
Array of
objects.
tagInfo
A
object contains information about a single tag that is included in the tag library. The following properties
taginfo
are defined in a
object:
tagInfo
• The
property, which is a string
tagName
• The
property, which is an array of strings. Each string is the name of an attribute that is defined for
attributes
this tag.
Example:
The following example shows that using the
tags from the
library:
libName
// "fileURL" and "prefix" have been entered by the user.
// tell the Tag Library to Import the DTD/Schema
var libName = dw.tagLibrary.importDTDOrSchema(fileURL, prefix);
// get the array of tags for this library
// this is the TagInfo object
var tagArray = dw.tagLibrary.getImportedTagList(libName);
// now I have an array of tagInfo objects.
// I can get info out of them. This gets info out of the first one.
// note: this assumes there is at least one TagInfo in the array.
var firstTagName = tagArray[0].name;
var firstTagAttributes = tagArray[0].attributes;
// note that firstTagAttributes is an array of attributes.
objects from an imported tag library.
tagInfo
dw.tagLibrary.getImportedTagList()
DREAMWEAVER CS3
API Reference
function can get an array of
434

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents