MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Specifiche Pagina 96

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 692
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 95
Chapter 896
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()
Description
Specifies how often to run the handlers for the enabled, checked, showIf, and value attributes
to update the visible 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 choose the lowest frequency possible and make sure
your handlers for
enabled, checked, and value are as simple as possible.
This function is equivalent to the
update attribute in a toolbar item.
Arguments
None.
Returns
Dreamweaver expects a string that contains a comma-separated list of update handlers. For a
complete list of the possible update handlers, see update="update_frequency_list" on page 91.
Vedere la pagina 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 691 692

Commenti su questo manuale

Nessun commento