Click to See Complete Forum and Search --> : How to Input a date and display an HTML file?


Krumbly
12-11-2004, 07:12 PM
I have a directory/folder of results (name format YYMMDD.htm) for a bridge club and want to input the results date required and display the appropriate page. I have tried along the lines of:

function hist(DMY)
{DMYHTM="/archive/"+DMY+"htm"
return DMYHTM}
-
-
histin: <INPUT name="histin" onChange="hist(this.value)">

without success.

If it is possible to show the archived result files this way, how do I do it? I have managed to produce a drop-down text box for members to choose links to other bridge clubs/associations using SELECT/OPTION but the club has three sessions a week and wants to store the history "in perpetuity" - which, with a year's worth already, would be a long drop-down. I started by showing the dates as cells in a table, linking (by A HREF yymmdd.htm) when we only had one session a week and no history, but this is no longer a viable way of giving members access to the archive.
Keith

PeOfEo
12-11-2004, 10:15 PM
The best option when dealing with a lot of data is a script that will run server side and a data base. Do you know of any server side scripting available to you with your present host? Do you have any prior programming experience, because if you are comfortable with some form of scripting already it will make using a server side script much easier. I am not saying you have to learn a whole language (thought it would not hurt) but you should consider using one and it helps to know what your code is doing even if someone else wrote it.

The most common server side languages are: ASP, ASP.NET, JSP, CGI, PHP, and Cold Fusion.

Krumbly
12-12-2004, 06:06 AM
To have anything other than basic hosting is too expensive for the club; so no, nothing is available server side. My programming skills started with Algol, Pop2, Joss, Jovial, Fortran ll, lV and finished soon after Fortran 77 was released (and mainframe databases & 4GLs at a "management level" i.E theory, very little practice).
Using 1st Page, Elizabteh Castro's HTML4 for the World Wide Web book and a lot of BS&T I created a mutipage site. Perhaps I need to buy a book about JavaScript - any recommendations?
A variation of HTML's INPUT TYPE="file" construct that displayed, say, the archive folder contents of the host and allowed a user to select a file and display it in their browser (by double-clicking the file's name?) would be OK.
I agree that a database would be best; but we (the club) can't afford it.
We are looking for a simple solution to the problem:
We have a bunch of files, in a specified folder (all having pre-determind names - Mondays, Wednesdays & Fridays dates), and just want to select one and display it in our browser.