The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Create slideshow from source folder, Slideshow of photos contained in content folder
joeseppe69
post Aug 15 2019, 01:09 PM
Post #1





Group: Members
Posts: 4
Joined: 15-August 19
Member No.: 26,958



Is there a way to have a slideshow of all the photos uploaded into a specific folder?

I can create a simple slideshow in HTML but I would need to list each of the photo file names within the code.

If possible, I would rather the code be static and simply look to a specific folder where all the photos are stored and create the slideshow for all those images.

Like that, if I wanted to change the photos in said folder, refreshing the page will the make the slideshow with the new photos and the core HTML code does not need to be edited.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Aug 16 2019, 04:31 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,628
Joined: 10-August 06
Member No.: 7



Will the finished page be run from a web server? You'd need one in order to run server-side scripts. But it's not possible for (client-side) javascript to view the files of the client computer, for security reasons.

Maybe there are Windows programs that can generate a list of files as well (and then you'd just manually copy that list to the slideshow script code).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
joeseppe69
post Aug 31 2019, 04:03 AM
Post #3





Group: Members
Posts: 4
Joined: 15-August 19
Member No.: 26,958



QUOTE(Christian J @ Aug 16 2019, 10:31 AM) *

Will the finished page be run from a web server? You'd need one in order to run server-side scripts. But it's not possible for (client-side) javascript to view the files of the client computer, for security reasons


My idea was to have the HTML page running on a PC connected to a large screen in the entrance area of the building.
It is a Windows machine so I could install IIS web server and point to localhost. Do I still need PHP or just JavaScript?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 31 2019, 09:02 AM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



Yes. You need something server side, not necessarily PHP. Unless you generate the file list beforehand as Christian suggested. But that's not a good idea if the images are going to change over time since you would have to update the the list each time you added or removed images. If they won't change or change very rarely it could work.

Note that if you go the server side way you also need to install the programming language you want to use, e.g. PHP. At least if you choose Apache. With IIS I don't know. I think it comes with ASP, but I'm not sure what it can do.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 31 2019, 01:42 PM
Post #5


.
********

Group: WDG Moderators
Posts: 9,628
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Aug 31 2019, 04:02 PM) *

Note that if you go the server side way you also need to install the programming language you want to use, e.g. PHP. At least if you choose Apache.

Or you could install XAMPP, which contains both.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 31 2019, 06:34 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



Several programs in a bundled package are still several programs. tongue.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th March 2024 - 06:54 AM