Locating text on a page - JavaScript, ASP, Perl, other

by "David Clapper" <dclapper(at)clioassociates.com>

 Date:  Thu, 9 Aug 2001 06:06:50 -0700
 To:  hwg-techniques(at)hwg.org
  todo: View Thread, Original

Hello all,

One of my clients built a "bingo card" page for a magazine. 
There are about 120 items on the page that can be fulfilled.
 A test version of the page can be seen at http://www.smithreader.com/trial.html
. (Yes, I know it loads slowly - I didn't develop it. Also, ignore
the existing script.)

They want to add search functionality to the page, and want it
to work like this:
(1) User types a word into a text box (let's say "cruise") and
clicks a button. 
(2) Page scrolls to the first item which contains the word in
question. Also, a child window pops up with a button that will
allow the user to scroll to the next occurrence of the word.
If the word is not found, the user is notified of that fact.
(3) The content of the page is not altered - all the items without
the word "cruise" are still displayed.

They are interested in not just word matches, but finding similar
items with the same root (in my example, "cruises" would have
the same results as "cruise").

The customer is asking to have this done in JavaScript - I'm
not sure how to do it in that case. I suspect it may be necessary
to go server-side to do this.  The server in question is IIS
4 with ASP and Perl.  I could generate the page from an Access
or flat-file db, but in that case, I'm not sure how to do the
"cruises" vs. "cruise" search.

Any advice would be gratefully appreciated.  TIA ...


David Clapper 
Vice-President & Chief Architect 
Clio Associates 
70 Pavilion St. 
Rochester, NY 14620 USA 
Voice: +1.716.442.5407 
Fax: +1.716.442.5993 
Cell: +1.716.259.3699 
e-mail: dclapper(at)clioassociates.com 
PGP public key ID: 0xC67E9E98 

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA