Adobe 38040334 - Dreamweaver CS3 User Manual page 289

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

Advertisement

Returns
A string that represents the source of the tag. This is the same string that passes as an argument (
the
canAcceptBehavior()
string.
Example
If you write an action that can be applied only to a hypertext link (
function, as the following example shows, in the function that initializes the user interface for the Parameters dialog
box:
function initializeUI(){
var theTag = dreamweaver.getBehaviorTag().toUpperCase();
var CANBEAPPLIED = (theTag.indexOf('HREF') != -1));
if (CANBEAPPLIED) {
// display the action UI
} else{
// display a helpful message that tells the user
// that this action can only be applied to a
// hyperlink
}
}
dreamweaver.popupAction()
Availability
Dreamweaver 2.
Description
Starts a Parameters dialog box for the specified behavior action. To the user, the effect is the same as selecting the
action from the Actions pop-up menu in the Behaviors panel. This function lets extension files other than actions
attach behaviors to objects in the user's document. It blocks other edits until the user dismisses the dialog box.
Note: This function can be called within the
inspector file.
Arguments
actionName, {funcCall}
• The
argument is a string that contains the name of a file in the Configuration/Behaviors/Actions
actionName
folder that contains a JavaScript behavior action (for example,
• The
argument, which is optional, is a string that contains a function call for the action that is specified
funcCall
in
; for example,
actionName
function in the action file.
Behavior()
Returns
The function call for the behavior action. When the user clicks OK in the Parameters dialog box, the behavior is
added to the current document (the appropriate functions are added to the
might be added to the top of the
(for example,
"MM_playTimeline(...)"
function. If this function appears outside an action file, the return value is an empty
objectTag()
"MM_playTimeline(...)"
section, and other edits might be made to the document). The function call
BODY
) is not added to document but becomes the return value of this function.
), you can use the
A HREF
function or in any script in a command file or in the Property
"Timeline/Play Timeline.htm"
. This argument, if specified, is supplied by the
section of the document, HTML
HEAD
DREAMWEAVER CS3
API Reference
) to
HTMLelement
getBehaviorTag()
).
apply-
284

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents