Dreamweaver 8.
This function gets the Element view for the currently selected element in the document. If the currently selected element is normal, the getElementView() function looks for the selected element's first ancestor that is either full or hidden.
None.
A string that indicates the status of the selected element. Values include:
"hidden", which indicates that the element has CSS properties that may cause content to be partially or completely hidden in Design view. Supported CSS properties include:
"full", which indicates that the element is "hidden" by default, but is currently in "full" view as set by the setElementView("full") function.
"normal", which indicates that the element is neither "hidden" nor "full".
The following example changes the status of the selected element to "full" if it is "hidden":
var currentDOM = dw.getDocumentDOM();
if (currentDOM && getElementView() == "hidden"){
currentDOM.setElementView("full");
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/17_desi6.htm