Adobe 38040334 - Dreamweaver CS3 User Manual page 189

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Returns
Dreamweaver expects a string that contains a menu ID, which is defined in the menus.xml file.
Example
function getMenuID()
{
var dom = dw.getDocumentDOM();
var menuID = '';
if (dom)
{
var view = dom.getView();
var focus = dw.getFocus();
if (view == 'design')
{
menuID = 'DWDesignOnlyOptionsPopup';
}
else if (view == 'split')
{
if (focus == 'textView')
{
menuID = 'DWSplitCodeOptionsPopup';
}
else
{
menuID = 'DWSplitDesignOptionsPopup';
}
}
else if (view == 'code')
{
menuID = 'DWCodeOnlyOptionsPopup';
}
else
{
menuID = 'DWBrowseOptionsPopup';
}
}
return menuID;
}
getUpdateFrequency()
Availability
Dreamweaver MX.
Description
Specifies how often to run the handlers for the
state of the item.
You must specify the update frequency for toolbar items because they are always visible, unlike menus. For this
reason, you should always select the lowest frequency possible and make sure your
handlers are as simple as possible.
This function is equivalent to the
,
enabled
checked
attribute in a toolbar item.
update
,
, and
attributes to update the visible
showIf
value
enabled
DREAMWEAVER CS3
Extending Dreamweaver
,
, and
checked
value
183

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents