Adobe 38040334 - Dreamweaver CS3 User Manual page 222

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

Advertisement

Example
The following instance of the
attribute, and the value of that attribute is
CLASSID
class ID for Adobe Flash Player):
function canInspectSelection(){3
var theDOM = dw.getDocumentDOM();
var theObj = theDOM.getSelectedNode();
return (theObj.nodeType == Node.ELEMENT
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
of the Property inspector.
function displayHelp(){
dw.browseDocument('http://www.hooha.com/dw/inspectors/inspHelp.html');
}
inspectSelection()
Description
Refreshes the contents of the text fields based on the attributes of the current selection.
Arguments
maxOrMin
• The
argument is either
maxOrMin
contracted state.
Returns
Dreamweaver expects nothing.
Example
The following example of the
populate a form field called
canInspectSelection()
"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
function opens a file in a browser window. The file explains the fields
displayHelp()
or
, depending on whether the Property inspector is in its expanded or
max
min
function gets the value of the
inspectSelection()
:
keywords
function returns a
true
_
NODE && ¬
DREAMWEAVER CS3
Extending Dreamweaver
value if the selection contains the
attribute and uses it to
content
216
(the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents