[Project_owners] Save As... and Open... diagloges

Keith Athaide keithathaide at yahoo.com
Sun Mar 28 14:03:46 EST 2004


Try this:

var picker =
Components.classes["@mozilla.org/filepicker;1"].createInstance(Components.interfaces.nsIFilePicker);
picker.init(window, "title", picker.modeOpen);
picker.appendFilters(Components.interfaces.nsIFilePicker.filterHTML);
    
if(picker.show() == picker.returnOK && picker.file)
{
    // Do what you want with the attributes from
picker
}

Hope this helps.

Keith Athaide
--- Robin Monks <mozillaman at linuxmail.org> wrote:
> Could somebodt tell me how to save and open .html
> file on a hard disk with diagloges using
> xul/Javascript in the chrome directory?  I need this
> for cuneAform.mozdev.org .
> 
> Any Help?
> Robin
> -- 
> ______________________________________________
> Check out the latest SMS services @
> http://www.linuxmail.org 
> This allows you to send and receive SMS through your
> mailbox.
> 
> 
> Powered by Outblaze
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html


More information about the Project_owners mailing list