Adobe 38040334 - Dreamweaver CS3 User Manual page 192

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

Advertisement

receiveArguments()
Availability
Dreamweaver MX.
Description
Processes any arguments that pass from a toolbar item. The
attribute in a toolbar item tag.
command
Arguments
For pop-up menus, combo boxes, text boxes, and color pickers, the first argument is the current value within the
control. The
getDynamicContent()
If the selected item in the pop-up menu has an ID attached, Dreamweaver passes that ID to the
function instead of the value. For combo boxes, if the current contents of the text box do not match an entry
ments()
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, 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
function to show certain buttons only when the page has a certain server model. If the
showIf()
is not defined, the item always appears. The
tag.
The
function is called whenever the item's enabler runs; that is, according to the value that the
showIf()
function returns.
dateFrequency()
Arguments
None.
Returns
Dreamweaver expects a Boolean value:
function can optionally attach individual IDs to items within a pop-up menu.
attribute, those arguments are passed next. If you did not specify the
function is the same as the
showIf()
if the item appears;
true
function is equivalent to the
receiveArguments()
value. For example, you can use the
true
showIf
otherwise.
false
DREAMWEAVER CS3
Extending Dreamweaver
receiveArgu-
arguments
function
showif()
attribute in a toolbar item
getUp-
186

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents