The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Updating Scroll bar
Sparky_Chr
post Jul 6 2017, 09:11 AM
Post #1





Group: Members
Posts: 2
Joined: 6-July 17
Member No.: 26,455



I am trying to make a scrolling window that will display archived image files in a folder as text and when the user clicks on the image it displays the image a window next to it.
The problem I am having is I can't figure out out to set up a scrolling window that displays files in a folder that updates the list when new files are added.
Does any one know of good reference material to help me on this? I have looked online for months now, I am not even sure how to search for what I'm looking to do.
Thanks
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jul 6 2017, 10:54 AM
Post #2


.
********

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



QUOTE(Sparky_Chr @ Jul 6 2017, 04:11 PM) *

that displays files in a folder that updates the list when new files are added.

This part requires a server-side script like PHP. Then the script reads the folder contents every time a browser requests the page.

But I don't know what a "scrolling window" means in this context. Do you mean a scrollable part of a page?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Sparky_Chr
post Jul 6 2017, 11:02 AM
Post #3





Group: Members
Posts: 2
Joined: 6-July 17
Member No.: 26,455



QUOTE(Christian J @ Jul 6 2017, 11:54 AM) *

QUOTE(Sparky_Chr @ Jul 6 2017, 04:11 PM) *

that displays files in a folder that updates the list when new files are added.

This part requires a server-side script like PHP. Then the script reads the folder contents every time a browser requests the page.

But I don't know what a "scrolling window" means in this context. Do you mean a scrollable part of a page?



Yea like a folder view that will let you scroll through the files.
I figured it would be PHP, but I'm just looking for some reference material to to do the up date and still allow me to call the file when clicked on.

Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jul 6 2017, 02:10 PM
Post #4


.
********

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



http://php.net/manual/en/function.scandir.php might be used to get an array of the directory contents. Then you can loop through the array and print out HTML links for array items that are image file names.

No updating of the list is necessary, since the PHP script runs every time a site visitors requests the web page.

The scrollbar might be done with the CSS overflow property.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

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: 18th November 2017 - 10:32 AM