| |||||||||||||||||||||||||||||
|
I am using the following code to allow the user to select a file name and path but it does not work in Firefox. This javascript is called from the onclick event of an image. Because I am using an image I don't see how I can use the browse button. I don't want the file that is selected to be displayed on the screen either. function SelectFile() { var cdlg=new ActiveXObject("MsComDlg.CommonDialog"); cdlg.MaxFileSize=256; cdlg.DialogTitle="Select a File"; cdlg.Filter="Tab Delimited File (*.txt)|*.txt|All Files (*.*)|*.*"; cdlg.ShowSave(); document.forms(0).CreateRpt.value=cdlg.FileName; } Is there a way to do something similar for FireFox? _______________________________________________ support-firefox mailing list support-firefox https://lists.mozilla.org/listinfo/support-firefox To unsubscribe, send an email to support-firefox-request?subject=unsubscribe
| ||||||||||||||||||||||||||||
© 2004-2008 readlist.com