Topic awaiting preservation: listing files from directory (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Borneo Island |
posted 05-04-2003 15:02
Is it posssible to list down files from a directory with Javascript? How? |
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-04-2003 15:45
as far as I know from numerous reading it isn't possible to detect any files on the server with client side javascript. With server side javascript it may be possible but I have no idea how you'd go about implementing that, I don't think server side javascript is as readily supported as client side so I think you're gonna be out of luck - better try PHP or ASP if your server supports it. |
Paranoid (IV) Inmate From: everywhere |
posted 05-04-2003 18:22
I think with client side JavaScript it's impossible - it doesn't have the permissions to access that kind of stuff on the server. There was though a very comprehensive thread on this over in the server-side forum, done using PHP. I am currently using this for a website I made for a friend, and it works just great: http://www.ozoneasylum.com/Forum12/HTML/001334.html |
Paranoid (IV) Inmate From: Borneo Island |
posted 05-06-2003 05:14
Actually, I'm putting some stuff on CD and I think server- side script would not be able to do that, so I'm thinking if its possible to implement it using javascript, or any other client side script. |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 05-06-2003 09:39
Well in that case you could resort to VBScript and use the FileSystemObject to work the directorys. Unfortunatley that would be Win/IE only if you want it to run in a browser... |