From wknox@mitre.org Thu Feb 14 12:53:07 2002 Date: Thu, 14 Feb 2002 14:50:42 -0500 (EST) From: "William R. Knox" To: htdig-general@lists.sourceforge.net Subject: [htdig] JavaScript enabled search page I have written a search page that, with the help of the magic of JavaScript, allows users to select either how many days ago a document was modified or documents within a set range of dates and then sets the startday, endday, etc., values appropriately (this overcomes the inability of a regular web page to contain two options, in this case startday, by the same name). It also contains some other nice functionality (automatically sets the correct number of days for the month selected, prevents restrict and exclude options from clobbering each other, etc.). The one disadvantage of using this page (aside from requiring JavaScript) is that it always sets at least startday, so it will add overhead to htsearch as it will always examine the date for each hit to make sure it falls within the range. That could easily be overcome in the checkStartday function by only setting values to startday, endday, etc., if they had been changed from the default. I'm not noticing huge slowness in searches, so I didn't bother. Maintainers, feel free to put this into the contrib directory somewhere. I couldn't find anything there that did this sort of thing, so my apologies if this is a duplicate of something already out there. Bill Knox Senior Operating Systems Programmer/Analyst The MITRE Corporation [Part 2, "" Text/PLAIN 215 lines] [Unable to print this part]