Forum Moderators: open
The approach i tried using is :
popup.document.execCommand("SaveAs",true,"Default.doc");
But it has two disadvantages:
a)When the "Save Dialog" appears the "Save as type" by default is "html or text" but not "Word Document".
How can i convert the contents of html in textarea to purely word format?
b) Second exceCommand() it supported only by IE but not other browsers.
Please suggest me how could i make it support other browsers.
Are the above mentioned actions supported by JavaScript.
I am eagerly waiting for your suggestions.
Best Regards,
Pals.
a) I'm not sure that you can save to Word format (client side) without some kind of browser plugin / ActiveX / Java component installed on the client? Or maybe you can have a server-side plugin that will create the Word Doc and allow the client to download it?
b) I think Mozilla supports execCommand() - but not quite the same as IE, and I don't think you can 'SAVE' files locally?
[mozilla.org...]
c) welcome to WebmasterWorld!