Example
The following example of the
explains the fields 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
maxOrMin
in its expanded or contracted state.
Returns
Dreamweaver expects nothing.
Example
The following example of the
attribute and uses it to populate a form field called
function inspectSelection(){
var dom = dreamweaver.getDocumentDOM();
var theObj = dom.getSelectedNode();
document.forms[0].keywords.value = ¬
theObj.getAttribute("content");
}
A simple Property inspector example
The following Property inspector inspects a fictional tag called
has no closing tag), so its selection type is
Property inspector appears—so the
time. To have a different inspector appear, depending on the value of the
attribute, for example, the
attribute to determine which Property inspector is the right one. (This is how the keywords and
description Property inspectors work, because "keywords" and "description" are values, not tags,
of the
tag's
META
<!-- tag:INTJ,priority:5,selection:exact,vline,hline -->
<!DOCTYPE HTML SYSTEM "-//Macromedia//DWExtension layout-engine5.0//pi">
<HTML>
<HEAD>
<TITLE>Interjection Inspector</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function canInspectSelection(){
return true;
}
220
Chapter 12: Property Inspectors
displayHelp()
argument is either
max
inspectSelection()
canInspectSelection()
canInspectSelection()
attribute.)
NAME
function opens a file in a browser window. The file
or
, depending on whether the Property inspector is
min
function gets the value of the
:
keywords
INTJ
. As long as the selection is an
exact
function returns a
function must check the value of the
CONTENT
. The
tag is empty (it
INTJ
tag, the
INTJ
value every
true
tag's
INTJ
TYPE
TYPE
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?