473,320 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Re: File download IE 7.0

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
2 1693
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Brandon Walters | last post by:
I wrote a file download module for my website. The reason for the file download module is that my website downloads work on a credit based system. So I need to keep track of and limit daily...
4
by: Bernhard | last post by:
I am not sure if php can achieve this, but i guess that my problem shoulb be solved with an server side language. Is there any way i can tell if a visitor of my website has finished a download?...
3
by: BOHICA | last post by:
I would like on my page when users click one of my mp3 files for the dialog box to pop up so they can choose to save the file to disk instead of trying to open through IE, but the dang thing won't...
3
by: skyetech | last post by:
We're creating a file sharing area in our intranet. When a user clicks on a link they can save the file to their computer. When the file is done downloading and the 'File Download' dialog closes I...
0
by: jmd | last post by:
Hello. I want to write a C# program that does completely automatically what, until now, I do manually, witch is describe below : 1. I launch IE (6) 2. I browse to my desired download page, say...
0
by: Buddy Ackerman | last post by:
I am trying to implment a file download via a link such that when clicked, instead of starting the default application for that type of file the user will be presented with a download dialog...
0
by: Rhys666 | last post by:
Basically I have a link that opens my download page and the querystring identifies the type of 'template' Excel spreadsheet has asked to download. The download page reads the querystring,...
18
by: jmd | last post by:
Hello, I posted the following in the C# forum but without one answer. But perhaps now in vb.net someone has some guidelines ! This is my question : I want to write a vb.net program that does...
3
by: tshad | last post by:
I have a function that downloads a file to the users computer and it works fine. The problem is that I then want the program to rename the file (file.move) to the same name plus todays date. ...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.