Adobe 38040334 API Reference - Page 194
Code view toolbar functions, dom.getOpenPathName, dom.getShowHiddenCharacters
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 194 highlights
DREAMWEAVER CS3 189 API Reference Example The following example expands all collapsed code in the current selection in the Code inspector: dreamweaver.htmlInspector.expandSelectedCodeFragments(); Code view toolbar functions Code view toolbar functions let you insert text, remove comments, show or hide special characters for white spaces in Code view, and get the path of the current document. Note: There are two different Coding toolbars: one for Code view and one for the Code inspector. Both are customized in the file Configuration/Toolbars/toolbars.xml. dom.getOpenPathName() Availability Dreamweaver 8. Description This function gets the absolute file path of the open document. Arguments None. Returns A string that is the absolute file path of the open document. Example The following example assigns the string that contains the path of the currently open document to the variable fileName: var fileName = dom.getOpenPathName(); dom.getShowHiddenCharacters() Availability Dreamweaver 8. Description This function determines whether the special characters for white spaces are shown in the Code view of the Document window. Arguments None. Returns A Boolean: true if the hidden characters are displayed; false otherwise.
![](/manual_guide/products/adobe-38040334-api-reference-b593776/194.png)