Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Graphics, Flash and Multimedia _ Updating Scroll bar

Posted by: Sparky_Chr Jul 6 2017, 09:11 AM

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

Posted by: Christian J Jul 6 2017, 10: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?

Posted by: Sparky_Chr Jul 6 2017, 11:02 AM

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

Posted by: Christian J Jul 6 2017, 02:10 PM

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.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)