| 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.
|