Boniface said:
Hi,
Is it possible to know the last modified date of a text file in
javascript.
Any help would be appreciated.
Thanks.
Fred.
Fred,
Javascript typically cannot access files on the clients machine.
Exception is the (crippled) javascriptsupport for input elements named
"FILE" in forms for uploadpurposes.
What is it excactly you want to accomplish?
If you are talking serverside you could maybe do a little simple scipting
(every serverside scriptinglanguage I know of supports this).
If you are talking clientside: I think: No.
Reason for this is that javascript can be executed by every weppage, so your
filesystem needs some protection for this.
Solution:
If you want a webpage to access the clients filesystem, use Java.
Remember that the client still must give his/her permission to such an
applet to do so!
Regards,
Erwin