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

Joseph W. Lowery

"Dreamweaver CS3 Bible"

You can even enable the Preview panel for images. No matter which options
you choose, the browseForFileURL() function returns the pathname of the file expressed as a
file://URL.
The browseForFileURL() function follows this syntax:
browseForFileURL(???Open??™|??™Save??™|??™Select??™, ???Title Bar Label??™, true|false);
The first argument, either Open, Save, or Select, specifies the type of dialog box. The Select File dialog
box displays additional local root information in its lower portion. The second argument is displayed in the
title bar of the dialog box; if you don??™t want to insert your own title, you must specify an empty string ?????™
(two single quotes, with nothing in-between) for the argument, as in this example:
browseForFileURL(???open??™,??™??™,false);
The final argument is a Boolean and indicates whether the Preview dialog box for selecting images is to be
displayed. If no title bar label is given and the Preview dialog argument is true, the title displayed is Select
Image Source.
The browseForFileURL() function is generally called by a secondary function that is triggered by an
onClick event attached to a Browse button. The Browse button, in turn, is next to a text field that enables
the user to enter the path by hand. Typically, this secondary function is called browseFile() and takes
one argument, fieldToStoreURL.


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