If not a reading from file then what?

Q

Q

Hello,

I looked through some posting of this group and understood that for
JavaScript it is not natural ot read from a file. Isn't that so? If it
is a case, what is the best solution for the following problem.
Visitor of a wep page creates some data which will be changed during
next subsequent visit of this page. I wanted to store this data in a
file on the server side and then read this data at next conection of
the corresponding user. The first reason of doing this is that I do
not whant user has a possibility to chang this data in his unprovided
way.

Thank you.
 
D

Douglas Crockford

I looked through some posting of this group and understood that for
JavaScript it is not natural ot read from a file. Isn't that so? If it
is a case, what is the best solution for the following problem.
Visitor of a wep page creates some data which will be changed during
next subsequent visit of this page. I wanted to store this data in a
file on the server side and then read this data at next conection of
the corresponding user. The first reason of doing this is that I do
not whant user has a possibility to chang this data in his unprovided
way.

Right, so you send the data back to the server. You do that with an HTTP
POST, and you can do that by submitting a <form>.

http://www.crockford.com/javascript
 
E

Evertjan.

Q wrote on 23 jan 2005 in comp.lang.javascript:
I looked through some posting of this group and understood that for
JavaScript it is not natural ot read from a file. Isn't that so?

Even if it where not unnatural that would not change the outcome
If it
is a case, what is the best solution for the following problem.
Visitor of a wep page creates some data which will be changed during
next subsequent visit of this page. I wanted to store this data in a
file on the server side and then read this data at next conection of
the corresponding user. The first reason of doing this is that I do
not whant user has a possibility to chang this data in his unprovided
way.

You can do that with javascript,
using serverside javascript under ASP.

Clientside coding, javascript or whatever,
cannot access files on the server.
 

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
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top