update="update_frequency_list"
Optional. This attribute specifies how often the enabled, checked, showif, and value handlers should run to update the visible state of the item. The update attribute is equivalent to the getUpdateFrequency() function in a toolbar command file.
You must specify the update frequency for toolbar items because these items are always visible, unlike menu items. For this reason, you should always select the lowest frequency possible and make sure your handlers for the enabled, checked, and value handlers are as simple as possible.
The following list shows the possible handlers for update_frequency_list, from least to most frequent. If you do not specify the update attribute, the update frequency defaults to onEdit frequency. You can specify multiple update frequencies, separated by commas. The handlers run on any of the following specified events:
onServerModelChangeexecutes when the server model of the current page changes.onCodeViewSyncChangeexecutes when the Code view becomes in or out of sync with the Design view.onViewChangeexecutes whenever the user switches focus between Code view and Design view or when the user changes between Code view, Design view, or Split view.onEditexecutes whenever the document is edited in Design view. Changes that you make in Code view do not trigger this event.onSelChangeexecutes whenever the selection changes in Design view. Changes that you make in Code view do not trigger this event.onEveryIdleexecutes regularly when the application is idle. This can be time-consuming because theenabler/checked/showif/valuehandlers are running often. It should be used only for buttons that need to have their enable state changed at special times, and handlers should be quick.NOTE
In all these cases, Adobe 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"