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

Joseph W. Lowery

"Dreamweaver CS3 Bible"

getDocumentDOM(???parent???);
if (frameset) { ... do code ... }
n ???parent.frames[number]??? or ???parent.frames[???framename??™]?????”To access another
document in the frameset of which the current document is a member, use one of these two argument
forms. The first, ???parent.frames[number]???, is usually used when the names of the
current frames are unknown or to cycle through any number of frames. The second,
???parent.frames[???framename??™]???, is applied in specific cases where the names of the other
frames are known and modifications are made to those frames only.
n URL??”Occasionally, the behavior builder references existing documents, either locally or on the
Web. Using a URL??”either absolute or relative??”as an argument enables you to retrieve information
on almost any document you can specify. When using a relative URL, such as this one from
Dreamweaver??™s Untitled Documents.js file, the URL is relative to the location of the behavior
or other extensibility file:
var curDOM = dw.getDocumentDOM(???../../Templates/Default.html??™);
TIP TIP
NOTE NOTE
BC 41
Creating a Behavior
Whenever API functions require the DOM object, such as the dom.getSelection() function
and others discussed in the following sections, you must first get the DOM of the current
document.


Pages:
1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926