shavenlunatic
MIS
Hi,
I'm new to JS and have a (hopefully) simple query.
I publish some html files to a directory, lets call it \server\files for now.
I have a page in the \server directory called "main.html" which I have to manually populate links to the files in the \server\files directory.
Is it possible to generate a script (and if so, how?) to be implemented into the main.html file which checks which files are in the \server\files directory and generates links to all available files.
So for example. in the \server\files directory, there could be the following:
"Register file wc 260207.html"
"Register file wc 020307.html"
"Register file wc 090307.html"
These will change on a rolling basis, so it would be nice if the script could just check which files are there and generate links to them dynamically (would be nice if links could be shown as "Week commencing 260207" but it's not essential).
There will never be any other files in that directory other than the files I wish to display so I won't need any error checking for invalid files.
Any help would be greatly appreciated and thanks in advance.
________
clueless
I'm new to JS and have a (hopefully) simple query.
I publish some html files to a directory, lets call it \server\files for now.
I have a page in the \server directory called "main.html" which I have to manually populate links to the files in the \server\files directory.
Is it possible to generate a script (and if so, how?) to be implemented into the main.html file which checks which files are in the \server\files directory and generates links to all available files.
So for example. in the \server\files directory, there could be the following:
"Register file wc 260207.html"
"Register file wc 020307.html"
"Register file wc 090307.html"
These will change on a rolling basis, so it would be nice if the script could just check which files are there and generate links to them dynamically (would be nice if links could be shown as "Week commencing 260207" but it's not essential).
There will never be any other files in that directory other than the files I wish to display so I won't need any error checking for invalid files.
Any help would be greatly appreciated and thanks in advance.
________
clueless