This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > May 2006 > execCommand saveAs command for mozilla





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author execCommand saveAs command for mozilla
sapna30

2006-05-26, 6:43 pm

I have problem with saving (creating) files in Mozilla with help javascript
Is it possible at all?
i m using iframe for this and its id is myFrame.


document.getElementById("myFrame").contentWindow.document.execCommand("SaveAs",
true,"text.txt")
it working fine in IE but
When I try
document.getElementById("myFrame").contentWindow.document.execCommand("SaveAs",
true,"text.txt") in nn7.2|firefox I have the

Error: uncaught exception: [Exception... "Component returned failure code:
0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMNSHTMLDocument.execCommand]"
nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame ::
file:///D:/Programming/js/Editor/Editor/scripts/codethateditorpro.js ::
anonymous :: line 480" data: no]

Do anybody know how to correct call this method for Mozilla or any another way
to create file in Mozilla?

Thanks for any suggestions.


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews