Link to home
Start Free TrialLog in
Avatar of ericdalrymple
ericdalrymple

asked on

execCommand('SaveAs'... problem with filename

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 Werken
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ericdalrymple
ericdalrymple

ASKER

thats it! you ARE the man!!! thanks!!!!