Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

execCommand('SaveAs'... problem with filename

Avatar of ericdalrymple
ericdalrymple asked on
JavaScriptWeb Browsers
2 Comments1 Solution2102 ViewsLast Modified:
I have some javascript that does a saveas to prompt the user to save an xml file:

<script>
document.execCommand('SaveAs',true,'tfbo-20070629AbdullahiA.9902-.xml');
</script>

This works on my machine:
-windows xp pro
-IE7

But not on other machines running IE 8 (and God only know what else.).
The problem is that on these other machines, the file save as dialog is opened with the filename looking like this:

tfbo-20070629AbdullahiA.9902-

Missing the ".xml"

I have verified all the IE settings I can think of that might affect this. ideas?
ASKER CERTIFIED SOLUTION
Avatar of Daniel Van Der Werken
Daniel Van Der WerkenFlag of United States of America imageIndependent Consultant

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers