/    Sign up×
Community /Pin to ProfileBookmark

to access files using js

Hi,

I need to know some information on file handling in javascript or html

I have in my web page 2-3 pop up forms which stores all the details in the array in main page, once i press the submit button in the main page i want to create a string of all the values stored in the array and write it to a file (preferably .h file).

I dont know how to write to file in js,
can some one please help me, if possible send me a sample code of how to access files in js?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@felgallJul 05.2006 — Javascript itself has no file access other than to cookies.

If you are only going to run the page on Internet Explorer (either locally or on an intranet) then you could use ActiveX to provide the file access.
Copy linkTweet thisAlerts:
@KarthikkauthorJul 05.2006 — Hi Felgall,

I have never used activex so if there is any other solution or if you can give me a sample code for it, It would be of great help,
×

Success!

Help @Karthikk 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.5,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...