Is it possible to override the last location of the
dw.browseForFolderURL()? So that when I call the
dw.browseForFileURL() function would the open select dialog box at
the folder I set via “myVar_Override”.
So the user would not have to browse for the right folder it
just opens in the right location set via my
“myVar_Override” they choose the file and its done.
Thank your for the reply.
It's not setting the
"dreamweaver.browseForFolderURL()function I have an issue with.
It's once someone selects a folder with the above function
the dw.browseForFileURL() will start at the last location
where the dreamweaver.browseForFolderURL() was called last
and thats fine in most cases but I have a special need to be able
to set the dw.browseForFileURL() starting point which does not have
the parameter as does the "dreamweaver.browseForFolderURL()"
function.
But I know the DW has to have the Location store in memory or
in a file somewhere. I'd like to write a new location to the
variable holding that information.
I am a little confused on what you are saying, but you can do
what you want with the function I supplied. It doesn't matter which
folder they opened last, you set the starting point in the
function. So everytime that function is run, it will start in the
folder you specified. Don't use dw.browseForFileURL(), use the
dreamweaver.browseForFolderURL('Title', 'Folder to Start In').
Example:
dreamweaver.browseForFolderURL('Select a Folder',
dreamweaver.getSiteRoot());
This will open the folder browser dialog with the default
folder as the siteroot everytime no matter what folder they visited
last.