Closed Thread Icon

Topic awaiting preservation: listing files from directory Pages that link to <a href="https://ozoneasylum.com/backlink?for=8636" title="Pages that link to Topic awaiting preservation: listing files from directory" rel="nofollow" >Topic awaiting preservation: listing files from directory\

 
Author Thread
Rick
Paranoid (IV) Inmate

From: Borneo Island
Insane since: Apr 2000

posted posted 05-04-2003 15:02

Is it posssible to list down files from a directory with Javascript? How?

cell 799

smonkey
Paranoid (IV) Inmate

From: Northumberland, England
Insane since: Apr 2003

posted 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.

visit my CryoKinesis Online Gallery

quisja
Paranoid (IV) Inmate

From: everywhere
Insane since: Jun 2002

posted 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


home

Rick
Paranoid (IV) Inmate

From: Borneo Island
Insane since: Apr 2000

posted 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.

I guess I'm going to have to try my luck on this.

cell 799

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted 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...
/Dan

{cell 260}
-{ a vibration is a movement that doesn't know which way to go }-

« BackwardsOnwards »

Show Forum Drop Down Menu