SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1926 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

This argument can be
???document???, ???parent???, ???parent.frames[number]???, or ???parent.frames[???framename??™]??? as
described earlier in the getDocumentDOM() function. If the document specified has not been saved,
getDocumentPath() returns an empty string.
The dreamweaver.getConfigurationPath() function
The Configuration folder can be considered the hub of Dreamweaver extensibility. It contains not only all
the standard HTML files, such as the behaviors and objects, that are read into the system when
Dreamweaver starts but also various other files that control the look and feel of the menus in other areas. As
such, it??™s often useful to be able to find the path to the Configuration folder so that other files can be created,
read, edited, and stored. And that??™s exactly what getConfigurationPath() does.
One sample use of this function, included with Dreamweaver, is part of the secret behind the Rollover
object. To a trained eye, the Rollover object is unlike any other ??”in fact, it??™s not really an object at all; it??™s a
command masquerading as an object. The getConfigurationPath() function plays a key role in the
JavaScript file rollover.js with this code:
var rolloverCmdURL = dreamweaver.getConfigurationPath() +
???/Commands/Rollover.


Pages:
1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938