Results 1 to 2 of 2

Thread: Javascript Check For Folder Changes

  1. #1
    Join Date
    Jul 2011
    Posts
    54
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default Javascript Check For Folder Changes

    Hi,

    I've searching for quite a while and all the search results are not very helpful and anything that seems remotely helpful (node.js) doesn't work. I am looking for a simple JS script that will just check every couple of seconds for a change in a specific folder (new files, deleted files, edited files, etc). If you guys could show me a great script or something I could easily build myself it would be most appreciated!

    Thanks in advanced.

    - M2com

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,957
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    Those functions are not available to javascript, period. If the folder is on the server, a server side language can do that and javascript could be used to ask a server side 'page' (in most cases a server side script really. Be it page or script, it would be written in a server side language* you're server is using) what the status of the folder is. If the server automatically supplies a directory listing files in folders without an index page in them and the folder you want doesn't have an index page, you could (theoretically at least) be able to simply fetch its contents and test it against the previously fetched directory listing's contents. If this is what you want to do and it's not such a folder, what server side language(s) do you have available? If it is such a folder, which one specifically?

    If, on the other hand you want to check a folder on the local hard drive, there are ways to do that, but most, probably all, will raise security flags in the browser.


    *Like PHP or ASP.NET
    Last edited by jscheuer1; 09-17-2013 at 07:24 AM. Reason: detail/punctuation
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Replies: 2
    Last Post: 03-14-2010, 02:49 PM
  2. Javascript to check req fields on button click
    By ismailc in forum JavaScript
    Replies: 2
    Last Post: 01-18-2010, 12:24 PM
  3. check whether javascript is enabled!
    By nolikewise in forum JavaScript
    Replies: 7
    Last Post: 10-02-2008, 05:11 PM
  4. Javascript to check certain checkboxes
    By lindm in forum JavaScript
    Replies: 0
    Last Post: 08-11-2007, 03:49 PM
  5. Javascript for check boxes
    By Yoda in forum JavaScript
    Replies: 4
    Last Post: 09-21-2006, 03:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •