Are you talking show a link in a table and when they click on it expand to the content of the link.
Or a link which displays a dir list in a table, for say a file in the dir in each record ?
Personally I'd definitely be scripting or CGIing this server side, the thought of giving a client direct access to the content on my server gives me the heebies.
How you script it depends on your environment of course, but you can do this sort of thing easily server side.
To disply the content of a file a web page.
Look up the object tag. NB the examples usually show this as a way to include a html file (sort of like includes in C et al. However if you put it inside
and put in the extension on the data attribute, you may get away with it.
Note this was a known way of injecting nasties onto client PCs, so you may make some suspicious.