Getcurrentvalue(); Getdynamiccontent() - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

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

Advertisement

Returns
Dreamweaver expects a Boolean value;
Example
function canAcceptCommand()
{
return (dw.getDocumentDOM() != null);
}

getCurrentValue()

Availability
Dreamweaver MX.
Description
Returns the current value to display in the item. Dreamweaver calls the
function for pop-up menus, combo boxes, text boxes, and color pickers. For pop-up menus, the
current value should be one of the items in the menu. If the value is not in the pop-up menu,
Dreamweaver selects the first item. For combo boxes and text boxes, this value can be any string
that the function returns. For color pickers, the value should be a valid color, but Dreamweaver
does not enforce this. This function is equivalent to the
Arguments
None.
Returns
Dreamweaver expects a string that contains the current value to display. For the color picker, the
string contains the RGB form of the selected color (for example #FFFFFF for the color white).
Example
function getCurrentValue()
{
var title = "";
var dom = dw.getDocumentDOM();
if (dom)
title = dom.getTitle();
return title;
}

getDynamicContent()

Availability
Dreamweaver MX.
Description
This function is required for pop-up menus and combo boxes. As with menus, this function
returns an array of strings that populate the pop-up menu. Each string can optionally end with
. If an ID is specified, Dreamweaver passes the ID to the
";id=id"
function instead of the actual string to appear in the menu.
188
Chapter 9: Toolbars
if the item is enabled;
true
value
otherwise.
false
getCurrentValue()
attribute.
receiveArguments()

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