JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2061
Number of posts: 5164

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Directory Listing Code Needed Posted by jrhine on 22 Jul 2003 at 3:58 PM
Hello!

I am currently in the process of building a web site for the class that I teach. Throughout the course, I will be posting numerous documents for my students to download, and I am looking for a javascript or related script that will automatically keep a listing of the files in a certain directory on the site.

Basically, when a student visits the page, I want the script to automatically obtain a listing of the files in the specified directory so that they can click on a certain file and download it. With the vast number of documents that I will be adding, it would be very time consuming to have to go in and create a hyperlink to each document that I upload.

Thanks in advance for your help!


Best Regards,

Jamie Rhine
Report
Re: Directory Listing Code Needed Posted by lillu on 30 Jul 2003 at 4:28 AM
Hi Jamie,

Sorry for my late reply but I just realized there's a messageboard for js beginners here.

Well, you cannot achieve what you want with client-side javascript, as it does not allow you to manipulate files on the server (as it runs on the client's machine)
All you can do with client-side javascript is to list your own directory files and upload them to the server.

Try ASP instead.

Here's a link relating to your question:

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20294319.html

Lillu

: Hello!
:
: I am currently in the process of building a web site for the class that I teach. Throughout the course, I will be posting numerous documents for my students to download, and I am looking for a javascript or related script that will automatically keep a listing of the files in a certain directory on the site.
:
: Basically, when a student visits the page, I want the script to automatically obtain a listing of the files in the specified directory so that they can click on a certain file and download it. With the vast number of documents that I will be adding, it would be very time consuming to have to go in and create a hyperlink to each document that I upload.
:
: Thanks in advance for your help!
:
:
: Best Regards,
:
: Jamie Rhine
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.