/    Sign up×
Community /Pin to ProfileBookmark

Having problems with ActiveXObject("Scripting…

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?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@trkkauthorApr 25.2003 — 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
×

Success!

Help @trkk spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...