Had a very strange result this weekend:
Stole some code from Doc Javascript at
http://www.webreference.com/js/column71/
(comments are mine...)
//<SCRIPT LANGUAGE="JavaScript">
//<!--
//var fso = new ActiveXObject("Scripting.FileSystemObject");
//var newpath = fso.BuildPath("c:\\tmp", "kuku.txt");
//alert(newpath);
//-->
//</SCRIPT>
This works, though my browser warns me about ActiveX being dangerous.
I then took a variant of that and added it to a page that was using
Javascript to cycle files through an embedded MS Media Player 6.4. In this
case, it flat out refused to work, saying "Automation server can't create
object", until I turned the security basically off in my browser.
What gives? Is there a good reference somewhere for using ActiveXObject()
with Javascript that addresses the security issues? I'd like to start using
it to play with some XML processing.
Thanks....
Warrick Wilson