Command="Script; Arguments="Argument_List - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

The following list shows the possible handlers for
frequent. If you do not specify the
frequency. You can specify multiple update frequencies, separated by commas. The handlers run
on any of the following specified events:
onServerModelChange
onCodeViewSyncChange
Design view.
onViewChange
or when the user changes between Code view, Design view, or Split view.
executes whenever the document is edited in Design view. Changes that you make in
onEdit
Code view do not trigger this event.
onSelChange
in Code view do not trigger this event.
onEveryIdle
because the
enabler/checked/showif/value
only for buttons that need to have their enable state changed at special times, and handlers
should be quick.
Note: In all these cases, Dreamweaver actually executes the handlers after the specified event
occurs, when the application is in a quiescent state. It is not guaranteed that your handlers run after
every edit or selection change; your handlers run soon after a batch of edits or selection changes
occur. The handlers are guaranteed to run when the user clicks on a toolbar item.
Example
update="onViewChange"

command="script"

This attribute is required for all items except menu buttons. Dreamweaver ignores the
attribute for menu buttons. Specifies the JavaScript function to execute when the user performs
one of the following actions:
Clicks a button
Selects an item from a pop-up menu or combo box
Tabs out of, presses Return in, or clicks away from a text box or combo box
Selects a color from a color picker
The
attribute is equivalent to the
command
command file.
Example
command="dw.toggleLiveDebug()"

arguments="argument_list"

Optional. This attribute specifies the comma-separated list of arguments to pass to
the
receiveArguments()
attribute, Dreamweaver passes the ID of the toolbar item. In addition, pop-up menus,
arguments
combo boxes, text boxes, and color pickers pass their current value as the first argument, before
any arguments that the
are specified.
186
Chapter 9: Toolbars
update
executes when the server model of the current page changes.
executes when the Code view becomes in or out of sync with the
executes whenever the user switches focus between Code view and Design view
executes whenever the selection changes in Design view. Changes that you make
executes regularly when the application is idle. This can be time-consuming
function in a toolbar command file. If you do not specify the
attribute specifies, and before the item ID if no arguments
arguments
update_frequency_list
attribute, the update frequency defaults to
handlers are running often. It should be used
receiveArguments()
, from least to most
onEdit
command
function in a toolbar

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents