Results 1 to 3 of 3

Thread: Loading a directory of images

  1. #1
    Join Date
    Oct 2006

    Question Loading a directory of images

    I am working on a photo gallery that uses a javascript to produce a slider of photos scrolling through a finite list of images.

    My question for everyone is whether javascript can read a directory on the server and load the list of .jpg file into an array that can be passed via a variable?

    My ultimate goal is to have the user scroll through the list of jpg's in a directory and on a double click event display a large image of the jpg on the screen.

    Any suggestions?

  2. #2
    Join Date
    Oct 2006
    Ontario Canada
    Javascript is a client side programming language..
    The client (the "browser") interprets the code.
    Therefore you can not read or write to files.

    look into ASP.net or PHP

    CAN we please add a FAQ in the header of the forum about reading and writing files via internet ?

  3. #3
    Join Date
    Oct 2006
    I found a PHP script not long ago that allows me to view my directories files. It looks similar to javascript and I was able to modify it somewhat. If you have a directory that only has images in it, I bet you could use it if, you learn a little more about PHP
    The PHP is 2k and the html is another 1k
    It's going to be some work?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center