By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,384 Members | 1,886 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,384 IT Pros & Developers. It's quick & easy.

Re: File download IE 7.0

P: n/a
Johnson Scaria John wrote:
My dear friends,
MyWindow.document.execCommand("SaveAs",'1',fileNam e); this is not
working in internet explorer 7.0 version but its working IE 6.0 and
firefox.Can you say whats problem and any solution for this

Thanks in advance
Reply and Follow-up to comp.lang.javascript
--
Sabine Dinis Blochberger

Op3racional
www.op3racional.eu
Jul 14 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Sabine Dinis Blochberger wrote:
Johnson Scaria John wrote:
>MyWindow.document.execCommand("SaveAs",'1',fileNa me); *this is not
working in internet explorer 7.0 version but its working IE 6.0 and
firefox.Can you say whats problem and any solution for this

Reply and Follow-up to comp.lang.javascript
The name of the file must be between quotes:

document.execCommand('SaveAs', '1', 'filename');

In addition, '1' feels a bit unboolean; and the file's extension is
missing too. I would probably go for:

document.execCommand('SaveAs', true, 'filename.htm');

Hope this helps,

--
Bart
Jul 14 '08 #2

P: n/a
On Jul 14, 11:49*pm, Bart Van der Donck <b...@nijlen.comwrote:
Sabine Dinis Blochberger wrote:
Johnson Scaria John wrote:
MyWindow.document.execCommand("SaveAs",'1',fileNam e); *this is not
working in internet explorer 7.0 version but its working IE 6.0 and
firefox.Can you say whats problem and any solution for this
Reply and Follow-up to comp.lang.javascript

The name of the file must be between quotes:

* document.execCommand('SaveAs', '1', 'filename');

In addition, '1' feels a bit unboolean; and the file's extension is
missing too. I would probably go for:

* document.execCommand('SaveAs', true, 'filename.htm');

Hope this helps,

--
*Bart
Thanks
It will be helpful for me.
Rana
http://ranawd.wordpress.com/
Jul 15 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.