I cannot to write data from IE to a local file. I have next problem: when I create html page with next content
<html>
<head>
<title>File's saving</title>
<SCRIPT>
function cf_random() {
b="c:\\file.txt";
var fso, f1;
fso = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso.CreateTextFile(b, true);
f1.WriteLine("Testing") ;
document.writeln("File " + b + " is created.");
}
</SCRIPT>
</head>
<BODY>
<input type=button value="Create file" onClick="cf_random()">
</body>
</html>
it works great, but when I try the same code with extern js file that I attach to site using bookmarklet - I get an error SCRIPT429: Automation server can't create object(code bellow)
javascript: (function() {
var s2 = document.createElement('script');
s2.src = 'http://192.168.0.100/jquery.js';
document.body.appendChild(s2);
})();
$(document).ready(function(){
b="c:\\file.txt";
var fso, f1;
fso = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso.CreateTextFile(b, true);
f1.WriteLine("Testing") ;
document.writeln("File " + b + " is created.");
});
What can be wrong?