[Jslib] File Picker in jslib

Gary Frederick gary.frederick at jsoft.com
Tue Oct 7 10:34:49 EDT 2003


Is there a way to get the filepicker with jslib?

Would it be useful to add it to jslib if there is not a way to 'pick' a 
file already there?

Thanks,

Gary

Example file picker

<snip>
   var nsIFilePicker = Components.interfaces.nsIFilePicker;
   var fp = 
Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); 

   fp.appendFilters(nsIFilePicker.filterXML);
   fp.init(window, "Select a program", nsIFilePicker.modeOpen);
   var res=fp.show();
</snip>



More information about the Jslib mailing list