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

Load all files in local folder?

P: 2
I am running a dynamic slideshow on a machine where the files are all on the local hdd. I have so far learned the basics of javascript, and also a little bit of loops, links, arrays, dom's and functions but I am still lacking one thing.

This is basically what I need.
A timer object in javascript set to run a function at set intervals.
From the function check the images folder to find if any flash files beyond currently loaded exists, if yes load it, else load the first one

the reason for this is because the files in the "images" folder on the hdd are always changing and I need the slideshow to recognize that and basically mirror that folder.

this is all on a windows XP and/or MCE box and it is for a local slideshow only.

any help is greatly appreciated. thanks in advance.
Feb 15 '07 #1
Share this Question
Share on Google+
4 Replies

iam_clint
Expert 100+
P: 1,208
window.setInterval(function, interval)


interval = milliseconds aka 1000 ms = 1s
Feb 16 '07 #2

acoder
Expert Mod 15k+
P: 16,027
One thing I should add is that on non-IE browsers, you may have problems accessing local files.
Feb 16 '07 #3

P: 2
This is the problem that I just can't figure out.

From the function check the images folder to find if any flash files beyond currently loaded exists, if yes load it, else load the first one

any ideas?

oh and it will always be an ie browser because its only on a local machine with me as the only user (and no internet access).
Feb 17 '07 #4

acoder
Expert Mod 15k+
P: 16,027
What do you want to check? New additional files or just newly modified files?

If it's just newly modified files, as long as you prevent caching, you should get the new files to display.

For additional files, you'll have to check the whole folder each time. For that, you will need the FileSystemObject.
Feb 19 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.