I'd like to generate local html-page contents using information gathered by browsing directory-tree depending on file names of files. I've got no experience in javascript which I suppose it would be the easiest to accomplish the task with. The page must work with IE7 correctly. Now, let me give an example of what I'd like to do.
The html-file is located in a local directory, say HTML_DIR
. There are several subdirectories, say HTML_DIR\A
, HTML_DIR\B
, HTML_DIR\C
containing xml files called XXX_001-999.xml
, YYY_001-999.xml
, ZZZ_001-999.xml
, whereas each of the types can be found in each subdirectory. So, an exemplary scenario would be:
HTML_DIR
/A
- XXX_001.xml
- XXX_002.xml
- XXX_003.xml
- YYY_001.xml
- YYY_002.xml
- YYY_003.xml
/B
- ZZZ_001.xml
- ZZZ_002.xml
- ZZZ_003.xml
- ZZZ_111.xml
- XXX_111.xml
/C
- YYY_001.xml
- YYY_002.xml
- YYY_003.xml
- ZZZ_111.xml
- XXX_111.xml
Now, I'd like to generate tables on the html-page for each of the subdirectories dynamically, with rows depending on containing files, so the page would look like:
Table A
XXX YYY ZZZ Link
001 001 http://localhost:8080/001.html
002 002 http://localhost:8080/002.html
003 003 http://localhost:8080/003.html
Table B
XXX YYY ZZZ Link
001 http://localhost:8080/001.html
002 http://localhost:8080/002.html
003 http://localhost:8080/003.html
111 111 http://localhost:8080/111.html
Table C
XXX YYY ZZZ Link
001 http://localhost:8080/001.html
002 http://localhost:8080/002.html
003 http://localhost:8080/003.html
111 111 http://localhost:8080/111.html
Is it doable?