[Project_owners] Two filepicker questions (SOLVED)

HJ bugs4hj at netscape.net
Fri Apr 9 06:16:51 EDT 2004

bugs4hj at netscape.net (HJ) wrote:

>I use a filepicker and like to prefill the filename, but what do I need for that?

filePicker.defaultString = "somefile.ext"; works for me.

>Oh, one other thing. gRDF.GetDataSource(fileName) fails when 'fileName' is set to |C:\somedir\somefile.ext| so I need to convert fileName to something like |file:///C:/somedir/somefile.ext| but what is the easiest way to do this?

I now use |filePicker.fileURL.spec| instead of |filePicker.file.path| and that works for me.

Introducing the New Netscape Internet Service. 
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need. 

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

More information about the Project_owners mailing list