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

Joseph W. Lowery

"Dreamweaver CS3 Bible"

Accessing the DOM for that page can take up a significant chunk of
your memory. If you??™re working with multiple pages, you could begin to run low on memory before the
behavior closes and the memory is automatically freed. With the releaseDocument() function, you can
get back the memory as soon as possible, whenever you request it.
NOTE NOTE
BC 47
Creating a Behavior
The releaseDocument() function??™s one argument is the DOM of the document in question. You obtain
the DOM argument by using the getDocumentDOM() function. You can see this function demonstrated in
Dreamweaver??™s displayHelp.js file, which is used to direct all the help requested, contextually.
The dreamweaver.browseDocument() function
Should a help file get too big for an alert dialog box, you might need to provide access to a larger file.
Dreamweaver enables you to open any specified file??”including an expanded help file??”within the primary
browser. The browseDocument() function takes one argument, the path to the required file (an
absolute URL):
dreamweaver.browseDocument(???http://www.idest.com/help/etable.htm???);
As noted in Chapter 33, you can use browseDocument() to access an absolute URL from the Web or a
file from a local drive. To display a local file, you combine browseDocument() with another function
such as getConfigurationPath().


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