473,806 Members | 2,332 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create a txt file with javascript

Fuhrer
30 New Member
Hi there,
i'm trying to create a javascript function that would create a text file so i can write some informations in it and read it later.
I'm using the "ActiveXObject( "Scripting.File SystemObject")" ,

function makefile(){
var fso;var thefile;

fso = new ActiveXObject(" Scripting.FileS ystemObject");
thefile=fso.Cre ateTextFile("c: \\test.txt",tru e);

fso.close()
}

but nothing is happening,

so please help me,
Thank u
Dec 30 '06
12 22042
acoder
16,027 Recognized Expert Moderator MVP
Thanks to acoder.
No problem. You're welcome.
Feb 23 '07 #11
mikeumus
1 New Member
Hello,
I am trying to record when someone signs and/or agrees to an online agreement. I figured this would be be done by creating a .txt file containing the information relevant to every unique signature instance, but after reading the above statements, it seems as though creating files is a major security compliance issue; but is it really an issue even if the file creation is all happening on the server side?

Does anyone know the standard for recording such information?

Thank you all for your time and consideration,

Peace and Love,
Mikeumus
Nov 10 '08 #12
acoder
16,027 Recognized Expert Moderator MVP
Hello Mikeumus, welcome to Bytes!

The above statements were for files created locally, not on the server. Instead of text files, you should look into storing this information in a database.
Nov 10 '08 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

4
3447
by: Bnob | last post by:
It is possible to create a file in local user-machine? With this code in code-behind: fs = New System.IO.FileStream(lFileCSV, System.IO.FileMode.Create, System.IO.FileAccess.Write) The file is created on the server. Any idea?
1
2211
by: Victor | last post by:
Hi, We have following setup here Web Server (Win2000) and FTP Server (Win 2000) We have ASP.NET application which runs on Web Server and writes file(s) onto FTP Server. We created asp.net network account and made sure that ASP.NET application runs under this account. Also, we gave full rights (with asp.net network account ) to FTP Server directory. When I try to create file on FTP Server from ASP.NET application, I get following message:...
11
2378
by: TJM | last post by:
Hi, A Javascript error is generated when the user types a few character in an INPUT TYPE=FILE and hits a submit button. The form does not post. Is there a solution to this problem? Thanks TJM
1
2124
by: j7o0s5 | last post by:
How to create file help chm?
2
1856
by: SteMc | last post by:
Hi, I'm trying to create a text file on an asp page but am having loads of trouble. At the minute what happens is this - I have a form with a textarea. When the form posts, the action is to run an asp page. Inside the asp page I want to take the text from the textarea and write it to a text file. the following way to do this;
1
1581
by: philmaz | last post by:
What I am trying to do is create a form that people can use to enter their email address to sign up for a mailing list. Once they enter their email address, I want the script to open up a txt file that is stored on the server and write the email adress to the bottom of the txt file. Then close and save the file. Is this at all possible to do with client side script on any kind? go to http://www.thetimelineband.com/emailform.html to...
1
1470
by: colleen1980 | last post by:
Hi: Can any one please tell me how to i create a button which open a file window from where i select any file and then it pass the file data into the list box. Basically in this file i have only 6 digit numbers which i need to process into the listbox. Needs help Thanks, Anna.
0
1411
Kosal
by: Kosal | last post by:
Hi I have problem with vb.net I want to create file setup or exe file for run on Client Computer that no need to install vb.net 2005 but I never do so I don't know what can i do? Please help Thanks
5
3682
by: plsHelpMe | last post by:
How to create dynamic javascript arrays using dojo toolkits Hello frens, I am in a big trouble. My objective is: I am having some categories shown by differnent radio buttons, on the click of a particular radio button i making an ajax call using dojo and retirieving the data corresponding to that category. Now i am suppose to create array of that data using the javascript dynamically. Can anyone please help me for the same. For your...
0
9597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10618
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.