JRS: In article <q7**************@squeaky.demon.co.uk>, dated Sun, 6
Aug 2006 09:46:51 remote, seen in news:comp.lang.javascript, Richard
<Ri*****@squeaky.demon.co.ukposted :
>
All I want to do is to read a list of the image files in my folder and
display them on a page. That way I don't have to re-write the page, I
can just upload extra images.
I assume you have a Demon TAM account or similar, in which case you have
a directory structure on Demon's server (which one might hope Web page
javascript can access; but it cannot) and you should have a matching
directory structure on your own computer, assumed to be a PC, which Web
page javascript cannot possibly access, but which, if you are
fenestrated, can be accessed by J[ava]script running under WSH, for
which a better place to ask is the microsoft.public.scripting.*
hierarchy.
Your best move, ISTM, is to have a program or script which runs on your
PC and generates a Web page listing the image files as links.
This command line, run at a MS-DOS prompt and using COLS via sig line 3,
does the basics if run in a directory containing Web pages :-
dir *.* /b | COLS { 'a * 'href= q 1- q } 1- { '/a } { 'br }
generating lines like :-
<a href="estr-tbl.txt">estr-tbl.txt</a><br>
and this for images :-
dir *.* /b | COLS { 'p } 1- { 'br } { 'img * 'src= q 1- q }
generating lines like :-
<p>13.gif<br><img src="13.gif">
In each case redirect to a file and use the copy command to join a
respectable top and tail - the whole can be put in a batch file.
On my site there are various programs & scripts for helping prepare the
Web site; bit none do what you ask for.
>Richard
--
The Sig should follow the SigSep.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk DOS 3.3, 6.20; Win98. ©
Web <URL:http://www.merlyn.demon.co.uk/- FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm- also batprogs.htm.