Javascripts are client side, and you can't read dir at server from client
side. You need server side scripting/cgi-programming. Lets look at php
solution.
You can use two php functions: $fileHandler =
open_dir("directory_path/absolute/or/relative")
and read_dir($fileHandler)
and save those in the associative array : $result = array();
the array would be :
listing_name => 0/1 (Directory=0, file=1)
and process the Hypertext docs with those as links
foreach ($result as $key => $val)
{
echo "you Dir/file name here";
}
you can use CSS to make the listing beautiful.
:)
and javascript to add some interactivity. its upto you. :)
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/