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 1923 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

The getBehaviorElement() function returns either a DOM
reference or null. getBehaviorElement() returns null in the following circumstances:
n The function was not invoked from a script called by the Behaviors panel.
n The behavior called is part of a timeline.
n The function was invoked from a script called by dreamweaver.popupAction().
n The function was invoked as part of a Behaviors panel that is attaching an event to a link wrapper
(...), and the link wrapper has not yet been created.
n The function is called outside of a behavior.
The following example assumes that the required tag must be an embedded plugin that is visible on the
page:
function initializeUI() {
var theTag = dreamweaver.getBehaviorElement();
var tagGood = (theTag.tagName == ???EMBED??? &&
NOTE NOTE
BC 45
Creating a Behavior
theTag.getAttribute(???HIDDEN???) == null);
if (tagGood) {
// Behavior User Interface code goes here
}
else {
alert(???This behavior can not be applied to hidden plug-ins???);
}
}
The dreamweaver.browseForFileURL() function
The browseForFileURL() function enables the user, instead of entering an entire path by hand, to
locate a file via a dialog box. You can specify whether you want an Open, Save, or Select style dialog box, as
well as the label in the title bar.


Pages:
1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935