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 1930 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

openDocument(???../Extensions.txt???);
You can also use the same technique referred to earlier in the browseDocument() function to access files
with the Configuration folder as a base.
Although the twin functions, openDocument and createDocument(), cannot be used
within a behavior, they can be called from a custom command or Property inspector.
Therefore, it??™s possible to use the popupCommand() function to access a command that employs
openDocument() or createDocument().
NOTE NOTE
BC 48
Creating a Behavior
The dreamweaver.saveDocument() function
After all your edits and modifications have been finished, you need a way to store the file. The aptly named
saveDocument() function performs that chore for you. This function takes two arguments,
documentObject and fileURL; the first corresponds to the DOM of the file to be saved, and the second
to the location where this file is to be saved. Again, fileURL is relative to the extensibility file.
If you omit the fileURL argument in Dreamweaver 4 or later, the file is saved to its current
location if it has already been saved; if not, a Save dialog box is displayed.
The saveDocument function returns true if successful and false if the file-storing attempt fails. If the
file specified is noted as read-only, Dreamweaver attempts to check it out; if it is unsuccessful, an error message
appears.


Pages:
1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942