MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 286

Extending dreamweaver
Table of Contents

Advertisement

Arguments
None.
Use dom.getSelectedNode() to get the current selection as a JavaScript object (for
more information about dom.getSelectedNode(), see the Dreamweaver API
Reference).
Returns
Dreamweaver expects a Boolean value:
otherwise.
false
Example
The following instance of the
selection contains the
AE6D-11cf-96B8-444553540000"
function canInspectSelection(){
var theDOM = dw.getDocumentDOM();
var theObj = theDOM.getSelectedNode();
return (theObj.nodeType == Node.ELEMENT_NODE && ¬
theObj.hasAttribute("classid") && ¬
theObj.getAttribute("classid").toLowerCase()== ¬
"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
}
displayHelp()
Description
If this function is defined, a question mark (?) icon appears in the upper-right corner of the
Property inspector. This function is called when the user clicks the icon.
Arguments
None.
Returns
Dreamweaver expects nothing.
Example
The following example of the
file explains the fields of the Property inspector.
function displayHelp(){
dw.browseDocument('http://www.hooha.com/dw/inspectors/inspHelp.html');
}
286
Property Inspectors
true
canInspectSelection()
attribute, and the value of that attribute is
CLASSID
(the class ID for Macromedia Flash Player):
displayHelp()
if the inspector can inspect the current selection;
function returns a
function opens a file in a browser window. The
value if the
true
"clsid:D27CDB6E-

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents