By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

If not a reading from file then what?

P: n/a
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.
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
> 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
Jul 23 '05 #2

P: n/a
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.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.