SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1941 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

The functions
are grouped by category into JavaScript files; currently 18 such files exist, including docInfo.js,
DOM.js, file.js, and string.js. Although they are used extensively throughout the standard behaviors,
nothing prevents you from using them in your own routines. To access them, you insert only one line
in your behavior JavaScript file, as shown the following:

Table 2-4 shows some of the most commonly used functions available in the Shared folder and the file in
which they can be found.
TABLE 2-4
Useful Common Functions
Function File Description
getAllObjectRefs() docInfo.js Returns an array of object references for any specified tag in
the current document or, if the document is in a frameset, in
all frames.
getAllObjectTags() docInfo.js Returns an array of tags for any specified tag in the current
document or, if the document is in a frameset, in all frames.
browseFile() file.js Opens the Select File dialog box and inserts the results into a
specified text box.
stripStar() menuItem.js Removes the ??? *??? from the end of a ???myObject *??? string.
stripValue() menuItem.js Removes the ??? (value)??? from the end of a
???someProperty (value)??? string.
addStarToMenuItem() menuItem.


Pages:
1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946