PDA

View Full Version : ActiveXObject is not defined.



Gayani1
06-11-2007, 08:08 AM
function run1()
{
myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
file = myActiveXObject.GetFile("E:\\my1.txt");
file.Delete();
}
run1();

I have written above javascript code to delete a specified file. But when it run it gives me following error.


Error: JSRULE.ERROR_0003 - Javascript rule execution failed - org.mozilla.javascript.EcmaError: ReferenceError: "ActiveXObject" is not defined. (#3) (org.pentaho.plugin.javascript.JavascriptRule)

pls help

thanks