Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2005, 01:30 PM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Build an array dynamically

I'd like to know how I can build an array dynamically with the images I have in my 'images/' folder on my server without having to list them in the code one by one.

Thanks for the help!

 
Old May 27th, 2005, 03:09 PM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You'd need some sort of server-side component that iterates through the list of images and outputs that list as a string that can be included as JavaScript.

Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/





Similar Threads
Thread Thread Starter Forum Replies Last Post
build array from multiple values perl crmpicco Perl 1 May 10th, 2007 11:19 AM
Build a page dynamically jbenson001 ASP.NET 1.x and 2.0 Application Design 13 June 20th, 2005 12:12 PM
Dynamically creating an array youngj PHP How-To 0 November 8th, 2004 03:42 AM
Dynamically Build 1 Xtab Qry Based On 6 Xtab Qry's Rood67 Access 1 March 4th, 2004 06:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.