Problem with SAVE! Please help...

M

Martin Mrazek

Hi,
I'm saving some data from HTML form on user's PC. In JS it's like

function saveToFile( filePath, content) {
var fso, ts;
var ForWrite = 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
ts = fso_OpenTextFile(soubCesta, ForWrite, true);
ts.Write(obsah);
ts.close();
};
}

This works properly, when I run the html document containing this
script NOT using Apache, but directly from my disc. When I put the
document to apache2/htdocs and run it by http://localhost/ the damned
saving doesn't work. (Ofcourse I try it under IE).

Please advice!

Martin
 
V

Vincent van Beveren

If you want to get this working you'll need to change
the security settings. Add localhost to your trusted sites.

tools > internet options > security

(note that you'll need to uncheck the https checkbox)

Then it will work, but only on your PC. Other users will have to repeat
the same action but then for their computer.

Vincent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top