Saturday, April 13, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  18] [ 2]  / answers: 1 / hits: 52945  / 15 Years ago, wed, may 13, 2009, 12:00:00

Is it possible to pull a bunch of .jpg pictures form a local file and throw them into a list?
Sorry, I was very vague



Pulling from a directory (relitive to the index) like.



I want to list them in an image tag, sequentially.


More From » jquery

 Answers
5

You could use the following to dynamically create an image and append it to a list.



$('<img />')
.attr('src', 'FOLDER LOCATION HERE')
.appendTo('#mylist')


some quick searching led me to find a FileSystemObject ( ActiveX =( ) to search a folder for files.



here is a link: http://www.codeproject.com/KB/scripting/search_in_files.aspx



but if you are doing any server side processing (.net, php, whatever) that would be the best way to figure out what images are available to you to display on the page. (so if you could clarify)


[#99542] Friday, May 8, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
josefinap

Total Points: 548
Total Questions: 125
Total Answers: 106

Location: Angola
Member since Tue, May 5, 2020
4 Years ago
josefinap questions
Sat, Sep 18, 21, 00:00, 3 Years ago
Fri, Jun 18, 21, 00:00, 3 Years ago
Sat, Mar 28, 20, 00:00, 4 Years ago
Mon, Dec 2, 19, 00:00, 4 Years ago
;