Monitoring a change in a file

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
legend986
Forum Contributor
Posts: 258
Joined: Sun Jul 15, 2007 2:45 pm

Monitoring a change in a file

Post by legend986 »

Is there a way I can monitor a change in a file using javascript without using the polling technique (i.e. check some attribute of the file continuously)...? Basically, I want to know if I can trigger an action if a file has been changed in the disk.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Monitoring a change in a file

Post by kaszu »

In the future we will have 'comet', but until then I don't know any way.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Monitoring a change in a file

Post by VladSun »

Well, the usage of JS on local files is very restricted.
You may be interested in viewtopic.php?f=30&t=76192.
There are 10 types of people in this world, those who understand binary and those who don't
taylor28
Forum Commoner
Posts: 31
Joined: Tue Sep 16, 2008 11:55 pm

Re: Monitoring a change in a file

Post by taylor28 »

VladSun wrote:Well, the usage of JS on local files is very restricted.
You may be interested in viewtopic.php?f=30&t=76192.
Thanks for sharing that link thread it might have something to learn. :)
Post Reply