list/ display all images in a folder

Is it possible with Javascript to list all the images in a folder and display them as images files. There will only ever be jpgs so there is no need to sort them out from any other types of files.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

erikTsomikSystem Architect, CF programmer Commented:
roscoeh23Author Commented:
no. anyone else?
b0lsc0ttIT ManagerCommented:

Where is the folder?  On the computer where the browser is or where the web page is?  What type of webpage (i.e. Internet, intranet, local)?

In general you can't use Javascript for this.  With Internet webpages this is especially true.  The Javascript can't search the web servers folder and browser security stops it from accessing folders on browser's computer.  With IE and ActiveX on a machine where the page is running locally then you could search the files in a folder.  In some cases the version of IE or security settings may stop this still and you will almost certainly have a "script" warning you will need to answer and allow.

If the images are on a web server and this is an Internet page then you should use a server language to do this (e.g. ASP, PHP, Perl).

Let me know if you have any questions or need more information.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Forced accept.

EE Admin
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.