PDA

View Full Version : Quick javascript question


chimpuk
05-05-2004, 10:11 AM
How in a webpage would I show a kind of embedded window with a list of files from a specified drive in it?
Ive been told that Javascript can accomplish this, and have looked at a few books and tutorials but cant see how itd be done
And dont really have time to learn the whole language as i only need this one thing#

any help appreciated

PhilEnfield
05-05-2004, 04:27 PM
Is this the sort of thing you mean ? - http://wsabstract.com/script/cut147.shtml

celtic_druid
05-05-2004, 04:51 PM
Sounds more like you mean an iframe.. something like: http://albatros.xs4all.nl/~menis/shoutbox/iframe.html

chimpuk
05-06-2004, 09:24 AM
cheers guys...both of those are similar to what i need, but the frame/list needs to read from a disk to display filenames...is that possible with either of those?

chimpuk
05-07-2004, 07:31 AM
found an example thats similar to what iw ant

http://www.jsmadeeasy.com/javascripts/Advanced/foldernav/index.htm

but need it to show folder of my choice...cant see anywhere in the code where thats specified

am I on the right lines?

celtic_druid
05-07-2004, 11:37 AM
In that example everything is hard coded. If you want a directory view then simply point the Iframe to the directory and don't have an index.html, php, etc. there and you will get a directory listing. If you are running apache then you may use readme to add a footer, etc.

chimpuk
05-07-2004, 02:25 PM
cheers that was quite simple...changed it to point at the drive and it looks good...thanx :)
Just gotta fiddle with it a bit to make it all appear right