Click to See Complete Forum and Search --> : Having problems with ActiveXObject("Scripting...


trkk
04-25-2003, 04:02 AM
Hi

I am having troubles with a few .asp files.

I try to make a file to my computer by pressing a button in .asp page.

When button is pressed the code to be executed is:
<INPUT TYPE="BUTTON" VALUE="vko" NAME="dee" onClick="xmlaa(this.form)" >

function xmlaa(luvut)
{
var fso, textfile, m;
fso = new ActiveXObject("Scripting.FileSystemObject");
txtfile = fso.CreateTextFile("c:\\a.xml", true);

and then some rows. Problem is that when the row "fso = newActiveXObject..." is reached my IE 5.50 says Error in page and stops there.

This has worked on other machines with IE 5.01. Is there some reason why this isn't working anymore? May I expect more troubles like this if I upgrade to IE 6?

Thanks in advance, T:confused:

trkk
04-25-2003, 07:02 AM
So if I want to run this in my firm's local intranet, I canīt do it without some adjustment to IE preferences???

Is there anyting to be done to make this work?

T