/    Sign up×
Community /Pin to ProfileBookmark

Can Javascript query contents of dir on webserver n output a list of filenames?

Hi, wondering if anybody knows if Javascript can query a directory on the webserver and return back an updated list of the contents? (I’m trying to make a photo slide show and want to be able to throw new files on the server, without having to update the shockwave that displays the images on the web.)

Thanks in advance!

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@CharlesAug 27.2003 — [i]Originally posted by telemann [/i]

[B]Hi, wondering if anybody knows if Javascript can query a directory on the webserver and return back an updated list of the contents? [/B][/QUOTE]
[font=georgia]No.[/font]
Copy linkTweet thisAlerts:
@halifaxrickAug 27.2003 — I have done something similar. you are welcome to use the javascript in my site (it uses frames).

www.babyoctopus.com/babastuff/html/index.htm

www.babyoctopus.com/babastuff/html/main.htm

www.babyoctopus.com/babastuff/html/topright.htm

The other files referenced are just placeholders.

The site can be easily changed to slideshow.

Rick.

(remember to have directory view enabled when doing this by using .htaccess or httpd.conf in apache)
Copy linkTweet thisAlerts:
@telemannauthorAug 27.2003 — cool, looks your script just might do it, thx!
Copy linkTweet thisAlerts:
@pyroAug 27.2003 — [i]Originally posted by telemann[/i]

[b]if Javascript can query a directory on the webserver and return back an updated list of the contents?[/b][/quote]
[i]Originally posted by halifaxrick [/i]

[B]I have done something similar.[/B][/QUOTE]
That's not what that script does...
Copy linkTweet thisAlerts:
@halifaxrickAug 27.2003 — It's not exactally what he asked for, but it does do what he wants. For ages I tried to work out how to bung new piccys on the web (without using someones image service) without typing every image into a html file. The stuff on my site is the best way I could find to do it.


Rick.
Copy linkTweet thisAlerts:
@pyroAug 28.2003 — Serverside code would be the best way to do it. You could write a very simple script that would loop through all the files in a directory and display the files that are images. As a matter of fact, I just wrote one for someone in PHP: http://forums.webdeveloper.com/showthread.php?s=&threadid=15902#post83584
Copy linkTweet thisAlerts:
@halifaxrickAug 28.2003 — Cool, thanks for the link, if I get server side access I will use it as I am sure it will work quicker.
Copy linkTweet thisAlerts:
@pyroAug 28.2003 — You bet... ?
×

Success!

Help @telemann spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...