MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Especificações Página 246

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 504
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 245
246 Toolbars
Arguments
For pop-up menus, combo boxes, text boxes, and color pickers, the first argument is the
current value within the control. The
getDynamicContent() function can optionally attach
individual IDs to items within a pop-up menu. If the selected item in the pop-up menu has
an ID attached, Dreamweaver passes that ID to the
receiveArguments() function instead of
the value. For combo boxes, if the current contents of the text box do not match an entry in
the pop-up menu, Dreamweaver passes the contents of the text box. To determine whether
the text box matches, Dreamweaver compares against the pop-up menu without case-
sensitivity.
If you specified the
arguments attribute, those arguments are passed next. If you did not
specify the
arguments attribute, Dreamweaver passes the ID of the item.
Returns
Dreamweaver expects nothing.
Example
function receiveArguments(newTitle)
{
var dom = dw.getDocumentDOM();
if (dom)
dom.setTitle(newTitle);
}
showIf()
Availability
Dreamweaver MX.
Description
Specifies that an item appears on the toolbar only if the function returns a true value. For
example, you can use the
showIf() function to show certain buttons only when the page has
a certain server model. If the
showif() function is not defined, the item always appears. The
showIf() function is the same as the showIf attribute in a toolbar item tag.
The
showIf() function is called whenever the items enabler runs; that is, according to the
value that the
getUpdateFrequency() function returns.
Arguments
None.
Vista de página 245
1 2 ... 241 242 243 244 245 246 247 248 249 250 251 ... 503 504

Comentários a estes Manuais

Sem comentários