Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
harpo_ #1
How to suggest a filename in a SaveAs dialog
Hi, I have a custom object which shows a SaveAs dialog like this saveLoc =
dreamweaver.browseForFileURL('save', 'Save file as', false, true, theFilter);
What I want is to put a suggested file name for saving the file in the 'File
name:' box of the dialog, like 'test' or 'test.htm' But no matter what I do,
this box always appears empty. Could someone please tell me how to put a file
name in it? Thanks
harpo_ Guest
-
trouble with saveAS
I am having a problem with a javascript function. I can save as a Tiff with no problem - but now I would like to have another option that allows... -
Compression when SaveAs PDF to Tiff
My adobe versions are 8.1.2. The code works fine in 'debug' mode, however when running the compiled code, the converted image has a compression of... -
saveAs from JSObject in browser
I am currently attempting to use IAC to run the saveAs from the JSObject in Adobe 5.0 to save a copy of a .pdf. My code will successfully save a... -
SaveAs txt file with VB6
Using Acrobat 5 & VB6. Want to programmatically "SaveAs" a pdf to txt file. I can do it in Acrobat but can find no "SaveAs" method exposed... -
COM excel SaveAs - Web Page?
Hi, I am trying to allow my Intranet users to upload their Microsoft Office Documents and then have them viewed as .html files. So far,... -
danilocelic *TMM* #2
Re: How to suggest a filename in a SaveAs dialog
harpo_ wrote:
There seem to be some inconsistancies with browseForFileURL and the> Hi, I have a custom object which shows a SaveAs dialog like this saveLoc =
> dreamweaver.browseForFileURL('save', 'Save file as', false, true, theFilter);
> What I want is to put a suggested file name for saving the file in the 'File
> name:' box of the dialog, like 'test' or 'test.htm' But no matter what I do,
> this box always appears empty. Could someone please tell me how to put a file
> name in it? Thanks
various types of browseing: save, select and open. Some features will
only be available to select, but not to save. There are also a few extra
parameters that are not doumented. Based upon what I have seen in the
config folders, there are 5 documented parameters, and at least 3
undocumented ones. The 6th parameter is a folder URL that specifies the
folder in which to open the dialog to. However, this parameter only
seemd to work with select and not the other two.
The 7th parameter I have no idea what it is for, as the only example
(maybe there were a couple) that had it passed in an empty string for
that parameter.
The 8th parameter appears to do something like wha tyou want it to.,
however, again, it only seems to work for select and not open and save
dialogs. So if you were to do something like this:
dw.browseForFileURL('select', 'Save file as', false, true, theFilter,"",
"", "test.htm")
you should be able to get text.htm to apear as the "default" file name.
You do need to be aware though that if the user cancels the dialog, the
file name you defaulted to will be returned by the dw.browseForFileURL
function. I've not personally tried using this parameter, so I don't
have a ready way around the issue.
As with any undocumented methods, use at your own risk.
--
Danilo Celic
| Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
danilocelic *TMM* Guest



Reply With Quote

