Description
This function gets the Element view for the currently selected element in the document. If the currently selected
element is normal, the
getElementView()
or hidden.
Arguments
None.
Returns
A string that indicates the status of the selected element. Values include:
•
, which indicates that the element has CSS properties that may cause content to be partially or
"hidden"
completely hidden in Design view. Supported CSS properties include:
• overflow: hidden, scroll, or auto
• display: none
•
, which indicates that the element is "
"full"
setElementView("full") function.
•
, which indicates that the element is neither
"normal"
Example
The following example changes the status of the selected element to
var currentDOM = dw.getDocumentDOM();
if (currentDOM && getElementView() == "hidden"){
currentDOM.setElementView("full");
}
dom.getShowDivBackgrounds()
Availability
Dreamweaver 8.
Description
This function gets the state of the Layout Block Backgrounds visual aid.
Arguments
None.
Returns
A Boolean;
if the Layout Block Backgrounds visual aid is on;
true
Example
The following example checks whether the Layout Block Backgrounds visual aid is on and, if not, turns it on:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowDivBackgrounds() == false){
currentDOM.setShowDivBackgrounds(true);
}
function looks for the selected element's first ancestor that is either full
by default, but is currently in "
hidden"
nor
"hidden"
"full"
false
view as set by the
full"
.
"full"
if it is
:
"hidden"
otherwise.
DREAMWEAVER CS3
336
API Reference