Updating Scroll bar |
Updating Scroll bar |
Sparky_Chr |
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 |
Christian J |
Jul 6 2017, 10:54 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,665 Joined: 10-August 06 Member No.: 7 |
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? |
Sparky_Chr |
Jul 6 2017, 11:02 AM
Post
#3
|
Group: Members Posts: 2 Joined: 6-July 17 Member No.: 26,455 |
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. |
Christian J |
Jul 6 2017, 02:10 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,665 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. |
Lo-Fi Version | Time is now: 13th May 2024 - 04:23 AM |