Receivearguments(); Setmenutext() - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

receiveArguments()

Description
Processes any arguments passed from a menu item or from the
is a dynamic menu item, it processes the dynamic menu item ID.
Arguments
{arg1}, {arg2},...{argN}
If it is a dynamic menu item, the unique ID that the
specifies is the only argument. Otherwise, if the
tag, the value of that attribute passes to the
canAcceptCommand(), isCommandChecked(), and
arguments. The
call the same menu command.
Note: The
arguments
Returns
Dreamweaver expects nothing.
Example
function receiveArguments()
{
var styleName = arguments[0];
if (styleName == "(None)")
dw.getDocumentDOM('document').applyCSSStyle('','');
else
dw.getDocumentDOM('document').applyCSSStyle('',styleName);
}

setMenuText()

Description
Specifies the text that should appear in the menu.
Note: Do not use this function if you are using getDynamicContent().
Arguments
{arg1}, {arg2},...{argN}
If the
arguments
the
setMenuText()
receiveArguments()
for distinguishing between two menu items that call the same menu command.
Returns
Dreamweaver expects the string that should appear in the menu.
attribute is useful for distinguishing between two menu items that
arguments
attribute is ignored for dynamic menu items.
attribute is defined for a
function (and to the canAcceptCommand(), isCommandChecked(), and
functions) as one or more arguments. The
dw.runCommand()
getDynamicContents()
attribute is defined for a
arguments
receiveArguments()
setMenuText()
tag, the value of that attribute passes to
menuitem
arguments
The Menu Commands API
function. If it
function
menuitem
function (and to the
functions) as one or more
attribute is useful
159

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents