cat
05-13-2003, 03:28 AM
My html file doesn't work with the javascript code
<script language="javascript">
var fso, f, r;
var ForReading = 1, ForWriting = 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile("testfile.txt", ForWriting, true);
f.Close();
</script>
When I use IE to run my html file with this code, I always receipt the error message : Automation server can't create object.
What can I do ? Can you help me ?
<script language="javascript">
var fso, f, r;
var ForReading = 1, ForWriting = 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile("testfile.txt", ForWriting, true);
f.Close();
</script>
When I use IE to run my html file with this code, I always receipt the error message : Automation server can't create object.
What can I do ? Can you help me ?